Log Volume Explosion and Cost Runaway

Identify and eliminate runaway log volume that drives unexpected observability cost spikes.

Overview

Overview

Log volume explosions are one of the most common causes of unexpected cloud cost spikes, and they are almost always avoidable. One misconfigured service or a new code path logging at the wrong level can raise the observability bill 10x in hours, and most teams only notice when the monthly bill arrives.

The pattern is always the same. Something starts writing far more lines than before: DEBUG logging left on in production, a retry storm, verbose ORM query logging or health check logging. All of it lands in the same spike in log volume, and every extra gigabyte shows up on the ingestion bill of CloudWatch or Datadog. The way out is also the same: reduce the volume at the source, then filter in the pipeline, until you are back to a right-sized volume.

Key concepts

  • Dynamic Log Level
  • Log Sampling
  • Log Routing
  • Fluent Bit
  • Log Ingestion Cost

Interview questions

  • How do you identify which log group or service is responsible for a log volume spike?
  • How do you implement log routing to reduce cost while preserving full ERROR log visibility?
  • What is a dynamic log level API and how does it work in practice?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio