All cloud cost guides

CloudWatch Logs cost spikes and missing retention

Why the charge appears

A release accidentally enables debug logging and the CloudWatch bill spikes. Ingestion drops after the fix, but archived storage can stay elevated because the log groups retain historical events indefinitely. Audit both charges before estimating how much a retention change would save.

Ingestion measures the data arriving in CloudWatch Logs. Storage reflects retained data. A retention limit addresses how long stored events accumulate, while filtering noisy messages at the source addresses future ingestion.

Find it in Cost Explorer or CUR

In Cost Explorer, filter to CloudWatch and group by Usage type. Look for DataProcessing-Bytes on the dates with unusually high ingestion and TimedStorage-ByteHrs for archived storage. Check other ingestion usage types if you use vended logs or different log classes.

In CUR 2.0, track these usage types by day and Region. Compare the start of the cost spike against deployments and incident timelines. A steady storage increase across quiet days suggests the archive deserves a separate review.

Read-only CLI checks

Run these commands in the billed account. Replace uppercase placeholders with your own values.

aws logs describe-log-groups --region REGION --query 'logGroups[?!retentionInDays].[logGroupName,storedBytes]'
aws logs describe-account-policies --region REGION --policy-type RETENTION_POLICY
aws cloudwatch get-metric-statistics --region REGION --namespace AWS/Logs --metric-name IncomingBytes --dimensions Name=LogGroupName,Value=LOG_GROUP_NAME --start-time START_UTC --end-time END_UTC --period 3600 --statistics Sum

Use UTC timestamps such as 2026-11-01T00:00:00Z when requesting IncomingBytes. Compare hourly sums around the spike for likely groups. storedBytes is a current inventory signal and will differ from the historical billing measurement.

Check account-level retention policies and confirm the effective retention in the console. Decide what must be retained for operations or compliance before changing retention. For an ingestion problem, identify which application or delivery stream generated the bytes.

Official references