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.

Account 123456789012 · us-east-1 · last 30 days, projected to 30 · generated 2026-10-27 10:00 UTC · Before the AWS free tier (5 GB/month, worth at most $2.50).

$60.18per month, 3 log groups
$50.55per month in savings found
90.0 GBingested per month ($45.00)
1groups that never expire (506 GB stored)

Biggest savings

  1. Drop or sample a noisy log line$18.05/mo
    us-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%.

  2. DEBUG-level lines in what looks like prod$18.05/mo
    us-east-1 · /ecs/api-prod

    Raise the log level to INFO in production (`logbill locate` finds the lines).

  3. Move to the Infrequent Access log class$15.00/mo
    us-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.

  4. Set 30-day retention (never expires today)$14.55/mo
    us-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
  5. Set 90-day retention (never expires today)$13.65/mo
    us-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
  6. Lambda START/END/REPORT lines$9.00/mo
    us-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
  7. Drop or sample a noisy log line$4.49/mo
    us-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%.

  8. Drop or sample a noisy log line$1.46/mo
    us-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%.

Amounts overlap (retention at 30 and 90 days, dropping a line and moving its group to Infrequent Access); the headline total counts each dollar once.

Costliest log groups

Log groupClassRetentionIngested/moStoredFilters$/mo
/ecs/api-prod
us-east-1
Standardnever expires60.0 GB500 GB0 / 0$45.00
/aws/lambda/checkout-prod
us-east-1 · vended
Standard14 days30.0 GB5.0 GB1 / 0$15.15
/app/kept-staging
us-east-1
Standard30 days0 MB1.0 GB0 / 0$0.03

Costliest log lines

Pattern (redacted)Share$/mo
{"level":"debug","msg":"cache lookup for order <Number-1> took <Number-2> ms"}
/ecs/api-prod · id 59821845c267
DEBUG in prodnoisy
60%$18.05
REPORT RequestId: <UUID-1> Duration: <Number-2> ms Billed Duration: <Number-3> ms
/aws/lambda/checkout-prod · id d6655ed952ca
Lambda platform
39%$5.82
order accepted, sending confirmation to :email
/ecs/api-prod · id 2203dc1c7035
noisy
15%$4.49
START RequestId: <UUID-1> Version: $LATEST
/aws/lambda/checkout-prod · id 07a418f72992
Lambda platform
21%$3.18
GET /health 200 in <Number-1> ms
/ecs/api-prod · id cd377624ef4a
noisy
5%$1.46

Map these to source lines: logbill locate --repo PATH --report <this report>.json

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.json to 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 pattern counts 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.