# Exporting logs

A source's **Export** tab gives you its logs as a file, in two ways: **Download once** makes one file now and changes no
setting; **Archive automatically** is a standing setting that keeps copying to your own bucket.

## Download once

For a one-off copy: an incident to hand over, data to load elsewhere, a support case.

1. Pick a time range: the last hour, 24 hours, 7 days, or a custom start and end. One export covers at most
   31 days, and only what the source still keeps (its retention).
2. Optionally keep only matching lines, with the same search as the Logs tab, e.g. `level:error "payment"`.
   Empty exports every line.
3. **Create download**. The file is written in the background and listed below with its line count and size;
   the list updates by itself while it is being written.

The file is gzipped NDJSON, one JSON object per log line, oldest first:

```json
{"ts":"2026-11-17 10:00:00.000","level":"error","message":"Payment failed","host":"web-1","context":{"order_id":1042}}
```

An export stops at 20 million lines and says so; narrow the range or the search for the rest.

**How long it is kept.** The file is downloadable for your plan's days (1 on Free, 7 on Pro, 30 on Business),
then deleted; the row stays, marked expired. You can delete one sooner. Downloading needs you signed in to the
team, and hands your browser a signed link that works for five minutes; the files are never public.

**Limits.** A team can start 3 exports a day on Free, 10 on Pro and 25 on Business, and run two at once. Asking
again for the same source, search and range while the earlier file is still on its way or downloadable gives you that
file instead of a new one, and does not count toward the day.
Anyone on the team who can see the source can export it; a Viewer can download but not start or delete one.

### Automatic download (Business)

Under the download form, **Automatic download** makes a file for you **every day** or **every week**: each file
covers the day (midnight to midnight UTC) or the week (Monday to Monday UTC) that just closed, is made a few
minutes after it ends, and is listed with the others, marked *Automatic*. It is kept for the same 30 days and counts
toward the exports a day. **Add filter** keeps only the lines matching a search. Pick **Off** to stop it; files
already made stay until they expire. If a team leaves Business the setting is kept but paused.

## Archive automatically to your own bucket (Business)

For long-term storage or compliance, Tailcove can copy a source's logs to an S3-compatible bucket in your own
account (AWS S3, Cloudflare R2, MinIO and others) on a schedule, every hour, every day or every week (weeks run Monday to Monday, UTC), in the same NDJSON
format under date-based folders. These files are yours and never expire on our side. Owners and admins set it
up with **Add a bucket** on the Export tab: pick Cloudflare R2 (bucket, account ID and an R2 API token), Amazon S3
(bucket, region and an access key) or another S3-compatible store (its endpoint URL), then **Test connection** to check the credentials;
the keys are stored encrypted and never shown again. A run that fails is retried on the next run from where it
stopped, so a gap closes by itself, and the owners and admins are told if it keeps failing.
