AWS Config Rule: CloudWatch LogGroup Retention Period Check
CW_LOGGROUP_RETENTION_PERIOD_CHECK
Fernando Honig
Last Update il y a 4 mois
Description: Checks whether Amazon CloudWatch LogGroup retention period is set to specific number of days. The rule is NON_COMPLIANT if the retention period is not set or is less than the configured retention period.
Trigger type: Periodic
AWS Region: All supported AWS regions
How to Resolve Manually
To resolve this manually, you will need to ensure that your CloudWatch Log Groups are set with a retention period. Log Groups without a retention period will grow exponentially, which incurs additional cost.
A Cloudwatch log group with a retention cycle will rotate based on the time specified.
To configure a retention setting for one of your CloudWatch log groups, if you select it from the CloudWatch console dashboard, you will then be able to hit the Actions button at the top of the page, and then click configure retention setting. Once this is selected, you will be able to choose from a variety of periods offered as standard by AWS.
![](https://tawk.link/60361066385de40757196ccc/kb/attachments/ccvNH0zIKP.png)
How to Resolve with StackZone
You can resolve with StackZone by enabling the CloudWatch Retention Period Check Remediation.
To do this, head on over to Baseline Services > Amazon CloudWatch > Remediations and set CloudWatch Retention Period Check Remediation to true
Want to know more about StackZone and how to make your cloud management simple and secure?
Check our how it works section with easy to follow videos or just create your own StackZone Account here
![](https://media.stackzone.com/assets/console/images/cz-portada-tawk-to.png)