Logs Cost Optimization

Log volume drives cost. Tune.

Overview

Log volume drives observability cost more than any other lever. Datadog, Splunk, and CloudWatch all bill on ingest and retention; selective logging produces real value at controlled cost while shotgun-debug logging produces a $50k surprise on the next invoice. The discipline is treating log lines as data the team pays for, not as free emissions.

The approach

Tune the level by tier, drop the noisy talkers, tier old logs to cold storage, audit quarterly, document the policy. The discipline scales with the team because the rules live in code (agent config) rather than tribal knowledge.

Why this compounds

Each correctly scoped service produces ongoing savings on every subsequent invoice. The team's observability culture matures from "log everything just in case" to "log what we will actually read." By year two cost-aware logging is the default and new services ship with policy-conformant config on day one.