Back to docsRecipe
Log retention & archival policy
Define how long Meridian keeps raw event logs, when they roll into cold storage, and how to purge data on customer request.
Tiers
- Hot — last 7 days, queryable via dashboard, sub-500ms reads.
- Warm — 8–90 days, compressed JSONL in S3, restore on demand.
- Cold — 91–365 days, Glacier Deep Archive, 12-hour retrieval SLA.
Automatic rollover
A cron job runs daily at 03:00 UTC. It moves partitions older than 7 days from the hot store into the warm tier, re-indexes metadata, and emits a log.archived event.
Customer-initiated purge
When a customer requests deletion, Meridian hard-deletes all tiers within 72 hours. A signed audit receipt is stored for compliance; the receipt contains no payload data.
Default retention
| Plan | Hot | Warm | Cold |
|---|---|---|---|
| Starter | 7d | 30d | — |
| Pro | 7d | 90d | 365d |
| Enterprise | 14d | 365d | 7yr |
Next step: Recipe: Immutable audit trail — chain every retention action to a tamper-proof ledger.