Finance says the log bill doubled in a quarter. How do you cut it without losing debugging ability?

IntermediateScenarioLogging Pipelines
Answer

Situation read → Volume grew, retention is uniform, and nobody owns cost per service.

What I'd do →

  1. Measure bytes per service and level for a week; usually a few services emit most of the volume.
  2. Drop DEBUG in production by default; sample repeated INFO lines (e.g. health checks, access logs for 200s).
  3. Filter at the shipper (grep/drop processors in Fluent Bit, Vector filter, Alloy stage.drop).
  4. Tier retention: 7 days hot for most, 30 days for audit-relevant, then archive to S3 Glacier.
  5. Publish a per-team log cost dashboard to create ownership.

Why → Most log spend is low-value noise; cutting at the source is cheapest.

Interview tip → Never drop errors or audit logs to save money; say so explicitly.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines