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 | |
|---|---|
| Destinations | AWS S3, S3 Compatible Storage (for example MinIO), Azure Blob Storage (also Azure Data Lake Storage Gen2) |
| Schedule | Hourly, Daily or Weekly |
| File types | JSONL, CSV, JSON |
| Export modes | Full history, Today, Custom date |
| Datasets | Traces, 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
| Field | Notes |
|---|---|
| Storage Provider | AWS S3, S3 Compatible Storage or Azure Blob Storage |
| Bucket Name / Container Name | Where files are written |
| Endpoint URL | S3-compatible and Azure only. For Azure, https://<account>.blob.core.windows.net. |
| Region | For S3, for example us-east-1 |
| Force Path Style | Turn on for MinIO and some other S3-compatible providers |
| Access Key ID / Secret Access Key | For 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 Method | Azure 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 Prefix | Optional 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
| Field | Notes |
|---|---|
| Export Frequency | Hourly, Daily or Weekly |
| File Type | JSONL, CSV or JSON |
| Export Mode | Full 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 Export | Limits the Standardized Export to the attributes you pick in Attributes to Export. The raw datasets always include every column. |
| Enabled | Turns 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:
| Folder | Contents |
|---|---|
traces | One row per trace |
observations | One row per observation (model calls, tool calls, spans) |
scores | One row per score |
standardized | One 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:
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:
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.
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:
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
| Action | What it does |
|---|---|
| Run Now | Exports 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 All | Rewrites 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.
| Event | When | Severity |
|---|---|---|
| Blob storage export failed | A 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 recovered | The first successful run after one or more failed runs. Runs with no data neither fail nor recover. | Info |
| Blob storage export alert closed | The export was turned off or deleted while its last run had failed. | Info |
| Export failed | A 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:
| Cause | Typical fix |
|---|---|
| Authentication or permission | The client secret or key expired, or the role was removed. Update the credentials, then use Run Now. |
| Container or bucket not found | The container or bucket was renamed or deleted. Check the settings. |
| Cannot reach destination | Check the endpoint, firewall, private link or DNS. |
| Throttled | Usually recovers on the next run. |
| ClickHouse out of memory | Lower the export concurrency or raise the memory limit. See Self-hosted deployments. |
| Export hung, Worker stopped | Check worker restarts and ClickHouse load, then use Run Now. |
| Configuration, Other | Read 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.
| Variable | Default | Meaning |
|---|---|---|
LANGFUSE_CLICKHOUSE_DATA_EXPORT_MAX_MEMORY_BYTES | 1073741824 (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_CONCURRENCY | 1 | How 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.