Free calculator
CloudWatch Logs cost calculator
Every new log group defaults to keeping every line forever. That is $0.50 per GB to ingest, $0.03 per GB-month to store, and no expiry, so the bill only goes one way. Setting a retention policy costs nothing and stops it.
CloudWatch → Log groups → IncomingBytes, summed.
Everything accumulated. 'Never expire' groups keep it all.
What a 30 to 90 day retention policy would leave.
Ingestion
$25.00/month
$300.00/year · ≈ £20/month
Storage
$24.00/month
$288.00/year · ≈ £19/month · total $49.00/mo
Retention saving
$21.00/month
$252.00/year · ≈ £16/month
$0.50/GB ingested + $0.03/GB-month stored. Ingesting a gigabyte costs ~17x storing it for a month, so if ingestion dwarfs storage, you need to log less rather than change retention.
The free scan lists every log group with no retention policy, its stored bytes and its ingestion rate, so a never-expiring debug log from 2023 shows up in seconds.
Where to look first
- →Never-expire log groups. This is the default. Every Lambda, ECS task or application that has ever logged creates a group that keeps everything until the account is closed.
- →Debug logging left on in production. A debugging session two years ago set the level to DEBUG, and it stayed there after the ticket closed. Verbose logging gets expensive at $0.50/GB ingested.
- →VPC Flow Logs capturing everything. They were enabled once for a security review, can capture all traffic on every interface and may never get read. Check how much they ingest.
- →Health checks and access logs. A load balancer health-checking every 5 seconds writes ~500k log lines a month per target, and you pay for all of that noise.
- →Compliance archives in the wrong tier. Keeping years of logs for compliance is fine, but CloudWatch charges $0.03/GB-month against ~$0.004 for S3 Glacier, a 7x overpay.
Frequently asked questions
Why is CloudWatch Logs so expensive?
Ingestion is the expensive part: $0.50 per GB ingested versus $0.03 per GB-month stored. A service logging 5 GB a day costs ~$75/month in ingestion alone. Check verbose logging levels in production first.
What does "Never expire" mean for my bill?
It is the default retention for every new log group. Nothing is ever deleted, so storage grows linearly forever. A log group ingesting steadily since 2023 is paying for every log line it ever received. Setting retention is free and takes one API call per group.
What retention period should I set?
A common pattern: 30 days for application logs, 90 days for anything audit-adjacent, 1 to 14 days for debug and access logs. If compliance needs longer, export to S3 (its archive storage classes cost less than CloudWatch storage) rather than keeping years in CloudWatch.
Does setting retention delete logs immediately?
Logs older than the new retention window are deleted within about 72 hours, and the storage charge stops. The change is free, needs no restart and does not affect ingestion, which makes it one of the safest cost fixes on AWS.
How do I cut ingestion cost, not just storage?
Drop log level from DEBUG/INFO where it is noise, sample high-volume access logs, stop logging request bodies and health checks, and check VPC Flow Logs. Enabled account-wide with full capture, they can ingest a lot of data, so check whether anyone reads them.