CloudWatch Logs pricing: ingestion, retention, and queries
CloudWatch Logs is best modeled as three buckets: ingestion, retention, and queries. Many teams budget only ingestion and forget that retention policies and query scans can be meaningful at scale.
Logs pricing inputs
- Ingestion GB/day: primary driver of spend.
- Retention days: storage GB-month baseline.
- Insights scans: GB scanned by queries.
1) Ingestion (GB): what you write
- Measured GB/day is best (from your logging destination).
- If estimating: requests/day × bytes/log / 1e9 ~= GB/day.
- The biggest lever is log verbosity: fields, headers, and repeated payload fragments.
2) Retention (GB-month): what you keep
First-order retention model: retained GB ~= ingestion GB/day × retention days.
- Short retention for high-volume success logs.
- Longer retention for security and audit signals where required.
- Include copies: exports, replication, and forwarding to other tools.
3) Queries and scans (often the surprise)
- Logs Insights: usually priced by scanned GB.
- Downstream analytics: exported logs queried in Athena/BigQuery/etc are usually priced by scanned data.
- Dashboards: scheduled and auto-refresh queries drive steady recurring scans.
Log group strategy (reduces both retention and scan cost)
- Split by intent: separate debug logs from audit/security logs from application error logs.
- Retention tiers: short retention for high-volume success logs; longer retention where required.
- Environment isolation: keep staging/test logs out of production queries and pipelines.
This reduces “accidental scanning”: when a query meant for prod errors scans all environments and all verbosity levels.
Unit and pipeline pitfalls
- GB vs GiB: keep your unit consistent across ingestion estimates and pricing inputs.
- Copies: exports to S3, replication, and forwarding to SIEMs can duplicate storage and scanning costs.
- Retry storms: incidents increase both ingestion (more events) and scans (more investigations).
Common pitfalls
- Logging too much data “just in case” and never using it.
- Keeping high-volume logs forever without a compliance reason.
- Running dashboards that scan long time ranges repeatedly.
- Forwarding everything into a SIEM/log platform where ingestion is more expensive.
Validation checklist
- Measure ingestion GB/day for at least 7 days (weekday/weekend patterns).
- Confirm retention policies per log group and lifecycle policies for exported copies.
- Measure scanned GB/day for common dashboards and incident playbooks.
- Confirm which environments are included (prod vs staging) in pipelines and queries.
Sources
- CloudWatch Logs pricing: aws.amazon.com/cloudwatch/pricing
Related guides
API Gateway access logs cost: how to estimate ingestion and retention
A practical guide to estimate API Gateway access logs cost: estimate average bytes per request, convert to GB/day, model retention (GB-month), and reduce log spend safely.
AWS CloudWatch Metrics Pricing & Cost Guide
CloudWatch metrics cost model: custom metrics, API requests, dashboards, and retention.
CloudFront logs cost: estimate storage, retention, and queries
How to estimate CloudFront log costs: log volume (GB/day), retention (GB-month), and downstream query/scan costs (Athena/SIEM). Includes practical cost-control levers.
CloudWatch Logs Insights cost optimization (reduce GB scanned)
A practical playbook to reduce CloudWatch Logs Insights costs: measure GB scanned, fix query patterns, time-bound dashboards, and avoid repeated incident scans.
CloudWatch Logs Insights pricing: what to model (GB scanned)
A practical Logs Insights pricing checklist: the core unit is GB scanned. Model scanned GB from query habits, avoid dashboard re-scan traps, and validate with a measured baseline.
Estimate Logs Insights scanned GB (from query habits)
How to estimate CloudWatch Logs Insights cost: model GB scanned per query, query frequency, and time range. Includes a quick calculator workflow and common pitfalls.
Related calculators
Log Cost Calculator
Estimate total log costs: ingestion, storage, and scan/search.
Log Ingestion Cost Calculator
Estimate monthly log ingestion cost from GB/day or from event rate and $/GB pricing.
Log Retention Storage Cost Calculator
Estimate retained log storage cost from GB/day, retention days, and $/GB-month pricing.
Log Search Scan Cost Calculator
Estimate monthly scan charges from GB scanned per day and $/GB pricing.
Metrics Time Series Cost Calculator
Estimate monthly metrics cost from active series and $ per series-month pricing.
CloudWatch Metrics Cost Calculator
Estimate CloudWatch metrics cost from custom metrics, alarms, dashboards, and API requests.
FAQ
What are the main CloudWatch Logs cost drivers?
Ingestion volume (GB) and retention (GB-month). If you query logs heavily, query scan costs can become a third major driver.
Why do log costs spike during incidents?
Incidents create more logs and more queries. Retry storms increase request volume (more logs), and investigators often run repeated broad searches (more scans).
Last updated: 2026-02-07