When a Langfuse blob storage export fits your retention plan
If your traces must outlive the retention window or feed analytics, Langfuse scheduled export to blob storage is the feature to evaluate. It syncs traces, observations and scores to Amazon S3, S3-compatible storage, Google Cloud Storage or Azure Blob Storage on a 20-minute, hourly, daily or weekly schedule, and it is available on self-hosted deployments. The Langfuse documentation points teams to this feature when they need data beyond the retention window, since the nightly cleanup of a self-hosted instance deletes data on its own schedule. Decide first which records must survive, for how long, and who will read them from the bucket, because those answers determine whether export is the right tool at all.
Treat the exported files as an archive, not a restore path. Export copies data out of ClickHouse so that other systems can query it, but it does not bring records back into Langfuse, reconstruct prompts or re-create project settings. If you need to recover the platform itself, plan that separately with backups of each data store. Also confirm whether your retention policy and deletion obligations apply to the archive, since data you copy out is still personal data if it contains prompts or outputs. Ask your compliance team to approve the bucket location, access model and deletion schedule before the first export runs.
Check two things in your environment before committing. Export formats are Parquet (the default), CSV, JSON and JSONL. The Langfuse docs say self-hosted ClickHouse older than 25.11 should be upgraded or use a text format, because incomplete Parquet output may not be reported, so confirm your ClickHouse version first. Then match credentials to your cloud: GCS export on self-hosted Langfuse can use Application Default Credentials, while the Azure integration uses a storage account key that cannot be scoped to a container or prefix. Confirm with your security team whether a key with account-wide reach is acceptable, or whether another storage option fits your policy.
Choosing the export schedule, format and destination
This table compares the export destinations, schedule intervals and file formats that Langfuse blob storage export offers for self-hosted deployments. Read each row against your retention window, the tools that will consume the files and the storage platform you already run. The main takeaway is that Parquet suits analytics engines, text formats suit simple ingestion, and your ClickHouse version decides whether Parquet output can be trusted.
| Choice | Option | When it fits | Watch for |
|---|---|---|---|
| Destination | Amazon S3 or S3-compatible storage | Your archive already lives in AWS or in an on-premises object store such as Ceph or MinIO-compatible systems | Confirm the endpoint, bucket policy and credentials your storage platform accepts |
| Destination | Google Cloud Storage | Your analytics and governance stack runs on GCP and you can grant access through Application Default Credentials | Self-hosted export to GCS uses Application Default Credentials, so plan how the Langfuse pods receive them |
| Destination | Azure Blob Storage | You must archive into an existing Azure estate and accept account-level access | The Azure integration uses a storage account key that cannot be scoped to a container or prefix |
| Schedule | Every 20 minutes | You need near-continuous copies for downstream monitoring or short-lag analytics | Frequent runs create many small files, which can complicate downstream queries |
| Schedule | Hourly or daily | Most archives and analytics loads that read data in batches | Choose a window that finishes before your retention deletes the same data |
| Schedule | Weekly | Low-volume projects or long-term cold archives reviewed occasionally | Gaps between runs widen the window that data could expire before export |
| Format | Parquet (default) | Analytics engines such as Spark, DuckDB, Trino or warehouse loaders that read columnar files | Requires ClickHouse 25.11 or later, or a text format, because incomplete Parquet output may not be reported |
| Format | CSV or JSON | Spreadsheet review, quick inspection or tools that expect flat delimited or document input | Nested fields such as metadata and input or output payloads are harder to flatten reliably |
| Format | JSONL | Simple ingestion pipelines that process one record per line and need a text format on older ClickHouse | Larger files and weaker compression than Parquet; confirm your loader handles the record shape |
| ClickHouse version | 25.11 or later | Parquet exports are reliable and the default format can stay in place | Confirm your running version before you rely on the export as an archive |
| ClickHouse version | Older than 25.11 | Upgrade ClickHouse first, or switch the export to a text format such as JSONL or CSV | Changing format later changes file layout, so keep schema notes with each archive |
How credentials differ by storage provider
Amazon S3 is the reference case for the export feature, and the access model is the one most teams already run. The export job authenticates with an access key pair or another credential the Langfuse services can use, and the permissions you attach determine what it can read and write. Scope the policy to the one bucket and, where the export settings allow it, the one prefix you intend to use. Keep the export credential separate from the credentials used for the media upload bucket so that a leak in one path does not expose the other.
- Dedicated principal: Create an IAM identity used only for exports, rather than reusing a deployment role shared with other services.
- Write-focused policy: Grant the object write and list actions the job needs on the target bucket and prefix, and nothing on unrelated buckets.
- Rotation plan: Record who rotates the key, how often, and how the new value reaches the Langfuse configuration without a restart gap.
- Encryption at rest: Decide whether the bucket uses default server-side encryption with keys you manage, and confirm the export identity can use those keys.
- Retention on the bucket: Set lifecycle rules on the archive bucket so that exported files follow your own retention schedule.
Before you go live, confirm the exact credential fields and their names in the export settings of your Langfuse version, and test the policy with a small export.
Self-hosted teams often archive to an S3-compatible store such as a Ceph object gateway, MinIO-style software, or an appliance from a storage vendor. The protocol is the same, but the details that matter sit in the endpoint configuration: the endpoint URL, the region value the service expects, whether path-style or virtual-hosted addressing is required, and the trust chain for any internal certificate authority. These differences are the usual cause of failed first exports on private storage, so test them before the schedule is enabled.
- Endpoint and addressing: Confirm the endpoint URL and whether the store requires path-style addressing.
- Region value: Ask the storage team which region string the service accepts, even when it ignores the value.
- Certificate trust: Make sure the Langfuse containers trust the internal certificate authority that signs the storage endpoint.
- Access keys: Issue a key pair scoped to one bucket and prefix, and check whether the store supports bucket policies that restrict actions.
- Object lock and versioning: Ask whether the platform supports object lock if your archive must be immutable.
Confirm the exact credential and endpoint fields in the export settings of your version, and check with the storage vendor which S3 API features it supports.
For GCS, self-hosted Langfuse can use Application Default Credentials, which means the export job takes its identity from the environment rather than from a long-lived key pasted into configuration. On Google Kubernetes Engine, that usually means a workload identity binding. On a VM or other host, it can come from an attached service account. This removes a stored secret from the Langfuse configuration, but it also means the identity the containers run as must have only the storage permissions the export needs.
- Workload identity: Bind the Kubernetes service account used by the worker to a Google service account with storage rights on the archive bucket.
- Least privilege: Grant object creation and listing on the target bucket, not project-wide storage roles.
- Bucket scope: Use a dedicated bucket for exports so the identity cannot reach unrelated data.
- Audit trail: Enable Cloud Audit Logs for the bucket so that writes made by the export identity are recorded.
- Key-free design: Confirm with your platform team that no service account key file is mounted into the containers unless your policy allows it.
Confirm in the export settings of your version that Application Default Credentials is the option you intend to use, and test it from the same workload that runs Langfuse.
The Azure integration works differently. It authenticates with a storage account key, and that key grants access to the whole storage account. You cannot scope it to a single container or to a prefix inside a container. This is a material constraint for a security review, because a leaked key exposes every container in the account, including any that hold unrelated data. Plan the account layout around this limit rather than assuming the export can be narrowed later.
- Dedicated storage account: Place exports in an account that holds nothing else, so the account key exposes only archived Langfuse data.
- Key storage: Keep the key in your secrets manager, and confirm how it reaches the Langfuse configuration without appearing in logs or shared files.
- Key rotation: Plan regular rotation with both storage account keys, so one can be switched over while the other stays valid.
- Access logging: Enable storage analytics or diagnostic logs to record requests made with the key.
- Network controls: Restrict the account with firewall rules or private endpoints where the network design allows it.
Before you commit to this design, ask your security team whether a key with account-wide scope is acceptable, and confirm the current credential options in the export settings of your version.
Setting up a scheduled export on a self-hosted instance
This sequence takes a self-hosted Langfuse instance from a ClickHouse version check to a verified, scheduled archive in your own object storage, with the restore assumptions written down before the first export runs.
Confirm the ClickHouse version or choose a text format
The platform engineer checks the ClickHouse server version against the export requirement. Langfuse's export documentation says self-hosted ClickHouse older than 25.11 should be upgraded before using Parquet, or the team should choose a text format (CSV, JSON or JSONL) instead, because incomplete Parquet output may not be reported. Record the version and the chosen format in the runbook. The step is done when the version is confirmed in writing and the format decision has an owner.
Create a dedicated bucket and prefix
The cloud or storage administrator creates a bucket, or a dedicated prefix in an existing bucket, used only for Langfuse exports. Keep it separate from application data and from the blob storage that holds media uploads. Grant the export identity write access to this prefix and no list or delete rights on the wider bucket, so a misconfigured export cannot overwrite other data. Confirm that bucket-level encryption and access logging meet your policy. The step is done when a test write to the prefix succeeds and a write outside it fails.
Configure destination credentials
The platform engineer configures the destination in Langfuse using the provider your organization already runs: Amazon S3, an S3-compatible store, Google Cloud Storage or Azure Blob Storage. For GCS, Langfuse can use Application Default Credentials, which avoids storing a long-lived key. The Azure integration uses a storage account key, which cannot be scoped to a container or prefix, so review that trade-off with your security team before choosing it. Store any secret in your secrets manager and rotate it on your normal schedule. The step is done when the connection test passes from the Langfuse console.
Choose the export format and schedule
The data owner selects the format (Parquet is the default, with CSV, JSON or JSONL as alternatives) and one of the supported intervals: every 20 minutes, hourly, daily or weekly. Choose the interval based on how much data can be lost if the schedule stalls and how the archive will be queried later, since analytics tools often read Parquet more efficiently. Confirm the format with the people who will read the files. The step is done when the format and schedule are saved and the first run appears in the export history.
Run a first export and check the object count
The platform engineer triggers or waits for the first run, then lists the objects in the prefix. Compare the number of files with the expected number of export intervals and check that no run failed silently. Keep the export logs, since they are the evidence that the job completed. The step is done when every expected interval has an object and the logs show no unresolved errors.
Verify file readability and timestamp coverage
Download a sample of files and open them with the tool your analysts will use, confirming that the schema, column types and row counts are readable. Then compare the timestamp range in the files with the observations and scores for the same window in ClickHouse, using a query that counts rows by hour or day for that range. Investigate any gap or mismatch before treating the schedule as reliable, and keep the query and results with the runbook. The step is done when sampled files open cleanly and the counts agree within the window you defined.
Document the restore assumptions
The data owner writes down what the archive is and is not. Exports are an archive for retention and analytics, not a restore path for Langfuse itself, so the runbook should point to the separate backup procedures for ClickHouse and PostgreSQL. Record the format, the ClickHouse version at export time, the credential type and rotation owner, the retention period on the bucket, and who can read the files. Confirm with your compliance team which fields in the export may contain personal data. The step is done when the document is reviewed and stored where the operations team can find it.
What the export contains and how it interacts with retention
The blob storage export covers the trace, observation and score data in a Langfuse project, and it runs on a recurring schedule rather than as a one-time copy. The schedule options are every 20 minutes, hourly, daily or weekly, and each run writes files to the bucket or container you configure. Because the export is a sync of data that already exists in your Langfuse instance, its contents depend on what ClickHouse holds at the time each run executes. Before you rely on it, confirm with the Langfuse blob storage export docs which fields each file contains and how the export treats records that are updated or arrive after a run has started.
The export and the data retention window are independent mechanisms that both act on the same records. The retention window removes old traces on a nightly cleanup, so an export only preserves a record if a run completes while that record still exists. Choose the export frequency so that at least one successful run falls inside each project's retention window. For example, if a project keeps data for a short period, a weekly export leaves gaps that a daily or hourly export would close. Review the retention setting and the export schedule together, and record which one you changed when you adjust either.
An export is an archive for analytics and long-term retention. It is not a restore path. Exported files do not reproduce the ClickHouse tables, PostgreSQL metadata such as users, projects, prompts and API keys, or the configuration that makes a Langfuse instance work, so keep scheduled ClickHouse and PostgreSQL backups in place as described in the backup and restore guidance. Test whether a failed or partial run is visible to your operators, and ask Langfuse how late-arriving or deleted data is handled in exports before you depend on the archive for audit or legal holds.
How data moves from ClickHouse to your bucket
The export job starts from Langfuse Web and Worker, which read observations and scores from ClickHouse on the schedule you set. The chosen format, Parquet by default, is written to the destination bucket, and the credential boundary decides who can reach that bucket. Retention cleanup runs separately, so check that the export window finishes before data expires.
Scheduled export path from ClickHouse to your bucket, with retention cleanup running alongside.
Protecting exported data in object storage
A scheduled export copies traces, observations and scores out of Langfuse into a bucket you may keep for years. The copy often outlives the retention window and sits in a store with its own access paths, so it needs its own controls. The cards below cover write credentials, encryption and logging, classification and key handling.
Scope the write credential
Give the export job credentials that can only write to the target bucket and prefix. Avoid reusing a broad cloud administrator key or an account-wide access key. Langfuse needs write access for the export, so confirm whether the job also needs list or delete rights and remove anything it does not use. Review the policy whenever the export target changes.
Export docsConfirm bucket encryption
Ask the storage provider or your platform team which encryption at rest applies to the export bucket, who manages the keys, and whether key rotation is automated. Exported Parquet, CSV, JSON or JSONL files hold the same content as the source database, so the bucket should meet the same encryption standard as your ClickHouse and PostgreSQL stores.
Enable access logging
Turn on server access or audit logging for the export bucket and send the logs to a system your security team monitors. Confirm the log retention period with the provider. Logs let you show who read or listed exported files, which matters when a reviewer asks how archived prompts were accessed.
Classify exports like the source
Exported observations contain prompts, model outputs and any personal data that reached tracing. Label the bucket and its prefixes with the same data classification as the Langfuse project they came from. Apply the same access groups, sharing rules and retention limits, because a copy in object storage is easy to overlook in a data access review.
Rotate the Azure account key
The Azure integration authenticates with a storage account key that cannot be limited to one container or prefix. Anyone holding the key can reach the whole account. Store it in your secrets manager, schedule rotation, and plan the cutover so the export job picks up the new key without a gap. Confirm the rotation procedure with your Azure administrator before go-live.
Prefer scoped identity on GCS
For Google Cloud Storage, Langfuse can use Application Default Credentials, which lets you attach a workload identity with bucket-level permissions instead of a long-lived key file. Document which service account the Langfuse containers run as, grant it write access to the export bucket only, and review that grant when the workload identity changes.
Questions teams ask before scheduling exports
What drives the cost and effort of a Langfuse blob storage export?
The cost comes from four places: object storage capacity, ClickHouse capacity, the credential and bucket setup, and the validation work that proves the archive is complete. Storage grows with the volume of observations and scores you keep, so the export size tracks your ingestion rate and how long you retain data. Exports read from ClickHouse, so they add query load and need disk headroom on the ClickHouse side. The Langfuse v3 to v4 guide advises about 3x ClickHouse disk headroom when backfilling historic data, which matters if you export a large history for the first time. Ask any partner to price these four components separately so you can see which ones recur.
How long does a first Langfuse export setup take?
No researched duration applies to this setup, so treat any single number as something to confirm rather than a plan. The time depends mainly on whether the bucket and identity already exist, whether your ClickHouse version is current enough for the chosen format, and how much historic data you backfill. A team with an existing S3 bucket, a suitable IAM role and a current ClickHouse deployment can usually move faster than one that must provision storage, agree on retention and upgrade ClickHouse first. Ask your partner or internal team to split the timeline into environment preparation, export configuration, a test run and a validation pass against source counts.
What must our team provide before the export can run?
You need four inputs ready before configuration starts. First, a destination bucket in Amazon S3, an S3-compatible service, Google Cloud Storage or Azure Blob Storage. Second, an identity that can write to it: an IAM role or access key for S3, Application Default Credentials for GCS, or a storage account key for Azure. Third, a ClickHouse version that the export supports. The docs say self-hosted ClickHouse older than 25.11 should be upgraded or use a text format, because incomplete Parquet output may not be reported. Fourth, a documented retention decision that states which data you archive, how often, and how long the archive itself must be kept, since blob storage retention is separate from Langfuse retention.
Can our own team set up and run Langfuse blob storage exports?
Yes, a team with Langfuse, ClickHouse and cloud storage experience can configure and run exports without an outside partner, because the export is a supported self-hosted feature. The work that usually needs care is credential scoping, format choice and proof of completeness. Azure is the clearest example: the storage account key cannot be scoped to a container or prefix, so any process holding it can reach the whole account. Google Cloud Storage can use Application Default Credentials, which fits workload identity setups better. If your team lacks these skills or lacks time for recurring checks, a fixed-scope engagement from DeployOpen can plan, configure and document the export, with the scope and deliverables agreed in writing before work starts.
Which export format should we choose, Parquet, CSV or JSON?
Parquet is the default and is usually the right choice for analytics engines that read columnar files. CSV, JSON and JSONL are text formats that work with simpler tools and are easier to inspect by hand. The format decision is tied to your ClickHouse version: if your server is older than 25.11, the docs recommend either upgrading ClickHouse or choosing a text format, because incomplete Parquet output may not be reported to you. Before you commit, run one export into a test prefix, count the rows against ClickHouse for the same window, and confirm your downstream reader handles nulls and nested fields. Record the format in your runbook so that future restores or analyses read the files correctly.
Can Langfuse exports restore our instance after a failure?
No. Exports are an archive for long-term retention and analytics, not a restore path for a self-hosted Langfuse instance. A restore rebuilds PostgreSQL, ClickHouse and blob storage from their own backups, and the export files do not carry the full operational state of the platform, such as users, projects and keys. Keep ClickHouse snapshots or BACKUP output, PostgreSQL dumps and blob storage backups as separate work, and test them. Use exports for data that must outlive the retention window, as Langfuse's data retention documentation suggests for data beyond the retention period.
Does a blob storage export help with GDPR deletion requests?
It can work against deletion goals, so plan for it explicitly. A scheduled export copies observations and scores into your bucket, and Langfuse retention or deletion will not remove those copies. If a personal data deletion must reach the archive, the bucket needs its own lifecycle rules, deletion procedure and audit trail. Confirm with your privacy and legal team which copies count as personal data for your use case, and align archive retention with the retention decision you made for Langfuse. This is a planning point for your compliance owner, not a legal conclusion.
How much does a Langfuse export cost in cloud storage charges?
Your cloud provider bills the storage, requests and egress for the archive, and those charges depend on the volume you export, the export interval and how long you keep files. Langfuse does not charge for the export feature on self-hosted deployments as described in its feature documentation, but you should confirm current licensing terms in the Langfuse documentation before you rely on that. Ask your storage team for a monthly projection based on a measured test export, not an estimate from total trace counts. Schedule choice matters too: the feature offers every 20 minutes, hourly, daily or weekly runs, and more frequent runs produce more, smaller files.
How DeployOpen scopes and delivers blob storage exports
DeployOpen scopes a blob storage export as a fixed-scope engagement agreed in writing before any work starts. The scope confirms the destination (Amazon S3, an S3-compatible store, Google Cloud Storage or Azure Blob Storage), the credential model, the export format and the schedule of 20 minutes, hourly, daily or weekly. Each choice is recorded against your infrastructure: which bucket or container and prefix receive the files, which identity writes to them, and which ClickHouse version produces them. The credential decision matters most. Google Cloud Storage can use Application Default Credentials, while the Azure integration relies on a storage account key that cannot be scoped to a container or prefix, so Azure exports need a documented acceptance of that broader access or a different plan agreed with your security team.
Delivery covers the export configuration in your self-hosted Langfuse, the destination permissions and a validation run in your environment. Validation checks that each scheduled run completes, that Parquet output is complete on your ClickHouse version (the docs say versions older than 25.11 should be upgraded or switched to a text format), and that observations and scores arrive with the fields your analysts expect. The written scope also records the restore boundary: exports are an archive for long-term retention and analytics, not a restore path for the live Langfuse databases. Recovery of ClickHouse and PostgreSQL stays with the backup design, which is covered in its own section.
Ongoing monitoring of failed runs, credential rotation reviews and upgrades to Langfuse or ClickHouse can be added as a retainer, so export jobs do not silently stop after a platform change. Ask DeployOpen to confirm in the written scope which of these items are included in the fixed price and which recur under a retainer, and ask your own security team to confirm the storage access model before the destination is approved.

