Amazon CloudWatch · Finder + automated fixer

Set CloudWatch Logs retention periods

OptimizeRetention

Optimize CloudWatch retention periods

What happens, in order.

  1. Finder · read-only

    Finds the opportunity

    Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.

  2. You

    Approve in Recommendations

    It appears in your Recommendations view with what it would save. Approve the resources you choose. Nothing has changed yet.

  3. Fixer

    Runs in your account

    The fixer runs as an AWS Systems Manager Automation runbook in your AWS account, and acts only on the resources you approved.

  4. Record

    Logs the execution

    The Systems Manager execution is logged, so every change can be audited.

Finder role

Read-only. It can see resource metadata and usage. It can’t change anything.

Fixer role

A separate, minimal role that acts only on the resources you approved, through AWS Systems Manager.

Why it costs money

A CloudWatch Logs log group keeps its data indefinitely unless you set a retention period. Stored log data is billed per GB each month, so a log group that is never trimmed costs more every month it runs.

Ingestion is a separate charge, paid once as the data arrives. A retention period does not lower ingestion; it stops the storage line from growing.

What to look at

  • Log groups set to Never expire, and how much stored data each holds. CloudFix lists the log groups whose yearly TimedStorage cost at public prices is above a set threshold.
  • What each log group must keep for audit, compliance or incident review. Export anything you need to keep longer to Amazon S3 before lowering retention.
  • The retention periods AWS allows: fixed steps from 1 day to 10 years, such as 30, 90, 365 or 731 days.

What the change does

  • The fixer sets each log group’s retention to the configured period: 365 days unless you choose another, from 1 day to 2 years.
  • CloudWatch then deletes events older than that period, usually within 72 hours. Events stop counting toward stored data once they are marked for deletion.
  • Deleted log events can’t be recovered. Raising the retention later keeps only the events still there.

Sources: AWS: Working with log groups and log streams; AWS: Exporting log data to Amazon S3; AWS: PutRetentionPolicy API; AWS: Amazon CloudWatch pricing; CloudFix support: CloudWatch log retention.

See whether this one applies to your account.

A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.