How do you design log retention tiers?

IntermediateProductionLog Pipelines
Answer
Tier Data Retention Store
Hot All app logs, searchable fast 7–14 days Loki/Elasticsearch/vendor
Warm Important logs (errors, audit) 30–90 days Loki on object storage / ES warm nodes
Cold/Archive Everything compressed 1–7 years (compliance) S3 with Glacier lifecycle

Rehydrate from archive only when needed (Datadog rehydration, Athena over S3, Loki querying old chunks). Retention per stream in Loki is set with retention_stream overrides.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Log Pipelines