Docs/Integrations/Blob Storage Export

Blob Storage Export

Blob storage export writes a project's trace data to your own bucket or container on a schedule, for analytics, warehousing or backup.

Options
DestinationsAWS S3, S3 Compatible Storage (for example MinIO), Azure Blob Storage (also Azure Data Lake Storage Gen2)
ScheduleHourly, Daily or Weekly
File typesJSONL, CSV, JSON
Export modesFull history, Today, Custom date
DatasetsTraces, observations, scores, and a joined Standardized Export
ℹ

Needs the scheduled-blob-exports entitlement: included in the Team and Enterprise cloud plans and every self-hosted plan. Viewing the settings needs read access to Integrations (notification and analytics integrations). Saving them, including enabling the export, and using Run Now or Re-export All need write access to Integrations and the content permission (pii:read), because the destination can receive prompt and response content. Among the built-in roles, only Owner has both. See Members & Roles.

Azure Data Lake Storage Gen2 and Microsoft Fabric

To export to Azure Data Lake Storage Gen2 (ADLS), pick Azure Blob Storage with the Service Principal (Entra ID App) authentication method. It works with the hierarchical namespace on or off, and needs no separate connector or feature switch.

Microsoft Fabric can read the container through a OneLake shortcut or a pipeline. ANTS Platform alerts on the export into the container (see Failure alerts). Failures inside Fabric, such as a pipeline that cannot read the files, are not visible to ANTS Platform: alert on them in Fabric.

Set up the export

Open the settings

Go to Project Settings > Integrations and open the Blob Storage card.

Choose the destination

FieldNotes
Storage ProviderAWS S3, S3 Compatible Storage or Azure Blob Storage
Bucket Name / Container NameWhere files are written
Endpoint URLS3-compatible and Azure only. For Azure, https://<account>.blob.core.windows.net.
RegionFor S3, for example us-east-1
Force Path StyleTurn on for MinIO and some other S3-compatible providers
Access Key ID / Secret Access KeyFor S3 and S3-compatible storage. On self-hosted deployments with AWS S3, leave both empty to use the host's credentials, such as an IAM role.
Authentication MethodAzure only. Shared Key (Account Key) uses the storage account name and key. Service Principal (Entra ID App) uses Tenant ID (Directory ID), Client ID (Application ID) and Client Secret. Grant the app Storage Blob Data Contributor on the storage account or the container.
Export PrefixOptional path inside the bucket. End it with /, for example ants-exports/.

Credentials are encrypted at rest. Saving the settings asks for step-up verification when it is enabled.

Choose what and when

FieldNotes
Export FrequencyHourly, Daily or Weekly
File TypeJSONL, CSV or JSON
Export ModeFull history exports everything in the project. Today starts from the day you set it up. Custom date starts from Export Start Date.
Filter Attributes to ExportLimits the Standardized Export to the attributes you pick in Attributes to Export. The raw datasets always include every column.
EnabledTurns the schedule on or off

Save and validate

Select Save, then Validate. Validate uploads a small test file to confirm that the credentials and permissions work.

What lands in your storage

Each export writes four datasets, each in its own folder:

text
{prefix}{projectId}/traces/ {prefix}{projectId}/observations/ {prefix}{projectId}/scores/ {prefix}{projectId}/standardized/
FolderContents
tracesOne row per trace
observationsOne row per observation (model calls, tool calls, spans)
scoresOne row per score
standardizedOne row per observation with its trace fields and scores attached, ready for analysis without joins

File names

A scheduled file is named after the end of the interval it covers, in UTC, with colons replaced by dashes:

text
{prefix}{projectId}/traces/2026-09-26T14-00-00.jsonl

On an hourly schedule, that file covers 13:00 to 14:00 UTC. Daily and weekly schedules write one file per UTC day, so a weekly run writes up to seven files per dataset. A day with no data writes no file.

⚠

Files are replaced, never appended. A later export of the same interval (a retry or a Re-export All) overwrites the file under the same name. Load each file as a replacement for its interval, and detect changes by last-modified time, not by file name.

Run manifests

Every run also writes one manifest at the project root:

text
{prefix}{projectId}/manifest-2026-09-26T14-05-11-<runId>.json

The manifest lists the run's status, triggeredBy (schedule, manual or reexport), the window it covered, exportFrequency, totals (file count and rows per dataset), the files written per dataset, any error, and an entry per interval in intervals, and a checksums map with the SHA-256 checksum and size in bytes of every file the run wrote. A failed run still gets a manifest. To load incrementally, pick up manifests you have not processed, check status, and load the listed files.

json
{ "version": 1, "files": { "traces": ["traces/2026-09-26T14-00-00.jsonl"] }, "checksums": { "traces/2026-09-26T14-00-00.jsonl": { "sha256": "9f2c...e1", "bytes": 48213 } } }

checksums is keyed by the same paths as files, relative to {prefix}{projectId}/. An interval with no rows writes no file, so it has no entry. Runs from before checksums were introduced have no checksums map.

Verify a file

Hash the file and compare the result with its sha256 entry, and its size with bytes:

bash
sha256sum traces/2026-09-26T14-00-00.jsonl
powershell
(Get-FileHash .\traces\2026-09-26T14-00-00.jsonl -Algorithm SHA256).Hash.ToLower()

A match proves the file is exactly what ANTS Platform wrote. A later export of the same interval replaces both the file and its checksum, so verify against the manifest of the run that wrote the file you hold. The manifest sits in the same bucket as the files; keep a copy of its checksums somewhere the bucket's writers cannot change if you need stronger evidence.

Reads from your bucket happen outside ANTS Platform and are not in its audit log. Use your storage provider's access logs to see who downloaded files. See Verify an export.

Timing

A scheduled export stops 30 minutes behind the clock and exports only complete intervals. Observations can arrive a little after their trace, and the delay lets a trace settle before its interval is written. For example, on an hourly schedule the 13:00 to 14:00 file is written after 14:30 UTC.

A large backlog, such as a first Full history export, is caught up in daily chunks within one run.

Run Now and Re-export All

ActionWhat it does
Run NowExports the configured range (from the export mode's start) up to about five minutes ago, in daily chunks. Files are named after the time the run started (2026-09-26T00-31-00.jsonl, then .part-00001.jsonl and so on), so they sit next to the scheduled files instead of replacing them. Each click writes a new full copy. It does not move the schedule.
Re-export AllRewrites the whole configured range with the current attribute selection, using the scheduled file names, so existing files are replaced in place. Use it after changing Attributes to Export so all files share one schema.

The runs table shows each run's Status (queued, running, success, no data, partial failure or failed), Triggered by, Date range, rows exported per dataset, Files, Run time and Failure reason.

Failure alerts

A failing export raises automation events, so it can email the project admins, open a PagerDuty or ServiceNow incident, or reach any other channel. Create a rule on the event, or start from a template: Email project admins when a blob storage export fails, Email project admins when a blob storage export recovers, Page on-call when a blob storage export fails or Open a ServiceNow incident when a blob storage export fails.

EventWhenSeverity
Blob storage export failedA scheduled or manual run ended failed or partly exported after its last attempt, or was stopped because it hung or its worker stopped.High, Medium when partly exported
Blob storage export recoveredThe first successful run after one or more failed runs. Runs with no data neither fail nor recover.Info
Blob storage export alert closedThe export was turned off or deleted while its last run had failed.Info
Export failedA one-off batch export from a table failed. See Data Exports.Medium

The failure event says what went wrong and how to fix it. Its Cause is one of:

CauseTypical fix
Authentication or permissionThe client secret or key expired, or the role was removed. Update the credentials, then use Run Now.
Container or bucket not foundThe container or bucket was renamed or deleted. Check the settings.
Cannot reach destinationCheck the endpoint, firewall, private link or DNS.
ThrottledUsually recovers on the next run.
ClickHouse out of memoryLower the export concurrency or raise the memory limit. See Self-hosted deployments.
Export hung, Worker stoppedCheck worker restarts and ClickHouse load, then use Run Now.
Configuration, OtherRead the error in the event and the run's Failure reason.
  • The error text is scrubbed before it is sent: signatures, keys, client secrets, passwords, authorization headers, tokens and credentials in URLs are replaced with [redacted].
  • Every failed run is an event. Consecutive failed runs (data.failureStreak) counts the failures in a row, so a rule can wait for the second one. Failure series (data.streakKey) is the same for every run of one series: the email template deduplicates on it for 24 hours, so you get one email when the export starts failing and at most one a day while it keeps failing.
  • One failure series is one PagerDuty or ServiceNow incident and one alert. The recovery event, or the alert closed event, resolves it.

Choosing a file type

All three formats carry the same data.

  • JSONL (one JSON object per line) is the safest choice when a tool reads a whole folder as one table.
  • CSV repeats the header row in every file. Check that your reader skips the header in each file, not only the first.
  • JSON writes one array per file.

When reading a dataset folder, match on your data file extension so manifests at the project root are not read as rows.

Self-hosted deployments

The worker reads these settings. They control how much ClickHouse memory an export may use.

VariableDefaultMeaning
LANGFUSE_CLICKHOUSE_DATA_EXPORT_MAX_MEMORY_BYTES1073741824 (1 GiB)Memory one export query may use. Joins and aggregations spill to disk at half this value instead of failing, so a low value makes an export slower, not wrong.
LANGFUSE_BLOB_STORAGE_EXPORT_CONCURRENCY1How many of the four dataset queries may run against ClickHouse at once. Peak memory is this number times the per-query limit, so set the two together.

In the Helm chart they are config.blobStorageExport.maxQueryMemoryBytes and config.blobStorageExport.queryConcurrency, rendered only when set.

When ClickHouse runs out of memory during an export, the run's Failure reason names these two settings and keeps ClickHouse's original error. Raise the memory limit, lower the concurrency, or give ClickHouse more memory.

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026