CloudWatch Logs Insights pricing: what to model (GB scanned)
Logs Insights pricing usually boils down to one number: GB scanned. A cost model should separate “routine” scanning (dashboards and daily debugging) from “incident” scanning (wide searches and repeated queries).
Logs Insights pricing inputs
- GB scanned: per query scan volume.
- Queries/day: dashboards and ad hoc usage.
- Peak scans: incident searches can dominate.
What to include in an estimate
- Scanned GB/month: routine queries + dashboards
- Incident multiplier: scanning spikes during outages and security investigations
- Log group scope: which environments and services are included in your common queries
Fast modeling workflow
- Estimate log volume (GB/day) for the log groups you query.
- Estimate scanned GB/query from time range and log group scope.
- Estimate queries/day (dashboards + ad-hoc + scheduled).
- Multiply to monthly scanned GB and apply your $/GB scanned rate.
What matters (and what doesn't)
- Matters: time range, log group scope, and query frequency (these drive scanned GB).
- Doesn't matter much: how many rows you return. A query that returns 10 rows can still scan terabytes if it searches broadly.
Worked example (routine vs incident)
- Routine: 3 GB scanned/query × 150 queries/day × 30.4 ~= 13,680 GB scanned/month
- Incidents: 2 days/month at 10× scanning -> add ~ (3 × 150 × 9) × 2 ~= 8,100 GB scanned/month
The point is not perfect math. The point is that incident behavior can be a significant fraction of monthly spend.
Rules of thumb (quick checks)
- Halving the time range usually halves scanned GB (first-order).
- Separating noisy log groups reduces scanned GB for routine error queries.
- Dashboards should default to 15m/1h windows; widen only on demand.
Common pitfalls
- Querying multiple environments (prod + staging) by default.
- Dashboards that scan 7–30 days on a short refresh interval.
- Broad queries over noisy success logs for questions about errors.
- Not modeling incident behavior (where scan volume is often highest).
Optimization direction
The safest optimization is usually to reduce scan scope, not to reduce logging itself. Start by time-bounding queries and separating noisy log groups.
Guide: Logs Insights cost optimization.
Validation checklist
- Measure scanned GB for a real week (including at least one busy day if possible).
- Validate dashboard time ranges and refresh intervals.
- Validate which log groups are included in the most common queries.
Sources
- CloudWatch pricing: aws.amazon.com/cloudwatch/pricing
Related guides
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.
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.
CloudWatch Logs pricing: ingestion, retention, and queries
A practical CloudWatch Logs pricing guide: model ingestion (GB/day), retention (GB-month), and query/scan costs (Insights/Athena). Includes pitfalls and a validation checklist.
AWS CloudWatch Metrics Pricing & Cost Guide
CloudWatch metrics cost model: custom metrics, API requests, dashboards, and retention.
CloudWatch dashboards pricing: what to include (dashboard-month + API)
A practical guide to CloudWatch dashboard costs: dashboard-month charges plus the hidden drivers (metrics API requests, alarms, and high-cardinality metrics).
CloudWatch metrics cost optimization: reduce custom metric sprawl
A practical playbook to reduce CloudWatch metrics costs: control custom metric cardinality, right-size resolution, reduce API polling, and validate observability coverage.
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 is the pricing unit for Logs Insights?
GB scanned. You pay for how much data your queries scan, not how many log lines your query returns.
Do dashboards affect Logs Insights spend?
Yes. Dashboards can create steady recurring scans if they run queries frequently or over long time ranges.
Last updated: 2026-02-07