Sample report. Synthetic data from Logbill's test scenario: made-up log groups in the AWS documentation account id 123456789012, not a real account. Run it on yours: dawnfix.dev/logbill
Dawnfix Logbill · CloudWatch Logs bill X-ray
Your CloudWatch Logs bill is about $60.18 a month. $50.55 of it can go.
Biggest savings
- Drop or sample a noisy log line$18.05/mous-east-1 · /ecs/api-prod
About 60% of this group's bytes (50% of events). Dropping it saves the full amount; logging 1 in 10 saves 90%.
- DEBUG-level lines in what looks like prod$18.05/mous-east-1 · /ecs/api-prod
Raise the log level to INFO in production (`logbill locate` finds the lines).
- Move to the Infrequent Access log class$15.00/mous-east-1 · /ecs/api-prod
No metric or subscription filters; recent Insights queries: 0. The class is fixed at creation: create a new group in Infrequent Access and point the writer at it. You lose Live Tail and filters; Insights still works.
- Set 30-day retention (never expires today)$14.55/mous-east-1 · /ecs/api-prod
Stores 500.0 GB with no expiry. At 30 days about 15.0 GB would remain.
aws logs put-retention-policy --region us-east-1 --log-group-name /ecs/api-prod --retention-in-days 30 - Set 90-day retention (never expires today)$13.65/mous-east-1 · /ecs/api-prod
Stores 500.0 GB with no expiry. At 90 days about 45.0 GB would remain.
aws logs put-retention-policy --region us-east-1 --log-group-name /ecs/api-prod --retention-in-days 90 - Lambda START/END/REPORT lines$9.00/mous-east-1 · /aws/lambda/checkout-prod
Platform lines on every invocation. JSON log format with system log level WARN drops them (Duration and memory stay in AWS/Lambda metrics). JSON format also reshapes your own log lines: check parsers and metric filters first.
aws lambda update-function-configuration --region us-east-1 --function-name checkout-prod --logging-config LogFormat=JSON,SystemLogLevel=WARN - Drop or sample a noisy log line$4.49/mous-east-1 · /ecs/api-prod
About 15% of this group's bytes (20% of events). Dropping it saves the full amount; logging 1 in 10 saves 90%.
- Drop or sample a noisy log line$1.46/mous-east-1 · /ecs/api-prod
About 5% of this group's bytes (10% of events). Dropping it saves the full amount; logging 1 in 10 saves 90%.
Costliest log groups
| Log group | Class | Retention | Ingested/mo | Stored | Filters | $/mo |
|---|---|---|---|---|---|---|
| /ecs/api-prod | Standard | never expires | 60.0 GB | 500 GB | 0 / 0 | $45.00 |
| /aws/lambda/checkout-prod | Standard | 14 days | 30.0 GB | 5.0 GB | 1 / 0 | $15.15 |
| /app/kept-staging | Standard | 30 days | 0 MB | 1.0 GB | 0 / 0 | $0.03 |
Costliest log lines
| Pattern (redacted) | Share | $/mo |
|---|---|---|
| {"level":"debug","msg":"cache lookup for order <Number-1> took <Number-2> ms"}DEBUG in prodnoisy | 60% | $18.05 |
| REPORT RequestId: <UUID-1> Duration: <Number-2> ms Billed Duration: <Number-3> msLambda platform | 39% | $5.82 |
| order accepted, sending confirmation to :emailnoisy | 15% | $4.49 |
| START RequestId: <UUID-1> Version: $LATESTLambda platform | 21% | $3.18 |
| GET /health 200 in <Number-1> msnoisy | 5% | $1.46 |
What this report cost
Logs Insights scanned 3.0 GB for about $0.01 (budget 5 GB, planned 3.0 GB). Everything else was metadata and metrics.
How the numbers were made
Prices, assumptions and notes
- Prices: AWS Price List for CloudWatch, published 2026-10-07, read 2026-10-27. Edit
prices.jsonto change them. - Ingestion: AWS/Logs IncomingBytes per log group over 30 days, scaled to 30.
- Storage: storedBytes from DescribeLogGroups at the region's GB-month rate. Retention savings assume the stored bytes built up evenly since the group was created.
- Per-line cost: Logs Insights
patterncounts over a short window, weighted by line length, applied to the group's monthly ingestion cost. - Vended logs (Lambda, /aws/vendedlogs/) are priced on the region's volume tiers.