CloudWatch waste check
No Retention Log Group
no_retention_log_group
What it finds
Finds log groups that never expire anything, so every log line you ever wrote keeps billing.
One of the CloudWatch checks, in the management & operations group.
How it is detected
Log group without retention policy
Detection confidence: MEDIUM/LOW. This is the criterion from our public docs. It runs in a local scan with your own read-only credentials.
- Signal
- DescribeLogGroups, log groups with no retention setting and some stored bytes
- Monthly figure
- The log group's stored GB multiplied by the per-GB monthly storage price, halved to reflect what a retention policy would typically remove.
- How to fix
- Set a retention period with put-retention-policy that matches how long you debug from these logs.
- In the docs
- This check in the detector reference
AWS's own tools
AWS has a check on the same resource, with narrower or different criteria.
Checked against the AWS documentation.
Run it yourself
Nothing leaves your machine unless you choose to share a summary at the end.