Archive telemetry to S3-compatible storage
Flare can write finished hours of logs, traces and metrics to a bucket as Parquet or gzipped NDJSON, for long-term keeping or for analysis in tools such as DuckDB, Athena or Spark. The data stays in Flare too; the archive is a copy. To keep old data queryable on cheap storage instead, see Set data retention.
Turn it on in the dashboard
Create a bucket (for example in RustFS or MinIO), then open Settings > Workspace > Telemetry export (admins only), fill in the Archive form (bucket URL, access key, secret key, prefix, format and signals), switch Archive enabled on and save. The archive worker re-reads its settings on every poll (every five minutes by default), so no restart is needed. Keys are hidden once saved; leave them as they are to keep them.
Saved settings replace the worker's Archive configuration as a whole, not field by field, until you choose
Reset to configuration, which deletes them. The form shows whether the archive is active and whether it is
using the saved settings or the configuration.
Use a different bucket from the cold-storage one.
Or turn it on in files
Set these on Flare.AlertWorker instead. With the standalone compose stack, put them in .env:
FLARE_ARCHIVE_ENABLED=true
FLARE_ARCHIVE_ENDPOINT=http://rustfs:9000/flare-archive # path-style bucket URL
FLARE_ARCHIVE_ACCESS_KEY=...
FLARE_ARCHIVE_SECRET_KEY=...
Setting (Archive__…) |
Default | Meaning |
|---|---|---|
Enabled |
false |
Master switch. |
Endpoint, AccessKey, SecretKey |
required | Bucket URL and credentials. |
Prefix |
flare |
Key prefix inside the bucket. |
Format |
Parquet |
Parquet or Ndjson (gzip, one JSON object per line). |
Signals__0… |
all | Any of Logs, Traces, Metrics. |
StartFrom |
current hour | Ingest time to begin from on the first run, to backfill. |
Lag |
00:10:00 |
How long after an hour ends it is exported. |
PollInterval |
00:05:00 |
How often to look for finished hours. |
MaxWindowsPerPoll |
6 |
Hours exported per table per poll while catching up. |
Manage the archive from the CLI or Terraform
The saved settings can be managed without the dashboard. Both need an Admin.
flare archive set --endpoint https://s3.eu-west-1.amazonaws.com/my-bucket \
--access-key <key> --secret-key <secret> --format parquet --signal logs
flare archive show
flare archive status
flare archive reset --yes
After the first set, options you leave out keep their current value, and the keys stay as stored. reset deletes the saved settings so the archive follows the Archive configuration again.
With the Flare Terraform / OpenTofu provider, which has exactly one archive configuration per Flare instance:
resource "flare_archive_settings" "archive" {
endpoint = "https://s3.eu-west-1.amazonaws.com/my-bucket"
access_key = var.archive_access_key
secret_key = var.archive_secret_key
format = "Parquet"
signals = ["Logs"]
}
The keys are write-only: Flare never returns them, so a change made outside Terraform is not detected. Destroying the resource runs reset.
Check its progress
The Export status table on the Telemetry export page, and the Archive card on the Ingestion page (visible to every signed-in user, shown only while the archive is active), list for each table the last hour exported, the rows it held, when it last succeeded and the last error, such as an unreachable bucket or wrong credentials. An error stays visible until the next successful export; the worker retries every poll.
What gets written
One object per table per hour, laid out so query engines can prune by date:
flare/logs/dt=2026-10-08/hh=14/logs-20261008T1400Z.parquet
flare/spans/dt=2026-10-08/hh=14/spans-20261008T1400Z.parquet
flare/metrics_gauge/dt=2026-10-08/hh=14/metrics_gauge-20261008T1400Z.parquet
Every column is included. Hours are by the time Flare received the data (IngestedAt), so a delayed or
back-dated event lands in the hour it arrived. Hours with no data write no object. A failed hour is retried
on the next poll and re-writing an hour overwrites it, so retries never duplicate data.
Read it back, for example with DuckDB: SELECT * FROM read_parquet('s3://flare-archive/flare/logs/*/*/*.parquet').
Limits
- Data older than the moment you enable the archive is not exported unless you set
StartFrom, and only while it still exists in Flare. - Profiles and Flare's own configuration tables are not archived.
- The credentials are sent to ClickHouse inside the export statement, so they appear in its query log.
Design notes: ADR-0156, ADR-0157.
Flare will not archive to a loopback, private or link-local endpoint (for example a MinIO on 10.x); it logs why and stays idle. To use one, allow it on Flare.AlertWorker with Outbound__Allow__0=10.20.0.0/16 (an IP, a CIDR or a host name; see the forwarding guide). The check is best-effort, because ClickHouse resolves the name itself; ClickHouse's remote_url_allow_hosts is the hard limit.
Last updated: