Medium
CloudWatch
Regional
CloudWatch log groups should be retained for a specified time period
NISTISO 27001
Description
This check ensures that CloudWatch log groups have a retention policy of at least 1 year (365 days).
Remediation
To comply with this control, set the retention policy of CloudWatch log groups to at least 365 days. This ensures that log data is stored for a sufficient duration to meet compliance and auditing requirements.
Steps
- Sign in to the AWS Management Console and open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
- In the CloudWatch console, click on 'Logs' in the left navigation pane.
- Select the log group for which you want to set the retention policy.
- Click on the name of the log group to view its details.
- In the 'Log group details' section, click on the 'Edit' button next to 'Retention setting'.
- In the 'Edit retention setting' dialog, select a retention period of '365 days (1 year)' or more.
- Click on the 'Save' button to apply the new retention setting.
Compliance
NISTISO 27001