More Info:

This rule checks if an Amazon CloudWatch LogGroup retention period is set to greater than 365 days or else a specified retention period. The rule is NON_COMPLIANT if the retention period is less than MinRetentionTime, if specified, or else 365 days.

Risk Level

Medium

Address

Configuration

Compliance Standards

SOC2,HIPAA,GDPR,NISTCSF,PCIDSS,RBI_MD_ITF,RBI_UCB

Triage and Remediation

Remediation

To remediate the misconfiguration of CloudWatch Log Group retention period in AWS, follow these steps using the AWS Management Console:

  1. Login to AWS Console: Go to the AWS Management Console (https://aws.amazon.com/) and login to your account.

  2. Navigate to CloudWatch: Click on the “Services” dropdown at the top of the page, search for “CloudWatch” in the search bar, and click on the CloudWatch service.

  3. Select Log Groups: In the CloudWatch dashboard, click on “Log groups” in the left-hand menu to view all the log groups in your account.

  4. Find the Log Group: Locate the log group for which you want to review or update the retention period. You can use the search bar to find the log group quickly.

  5. Update Retention Period:

    • Click on the log group name to open the log group details.
    • In the log group details page, click on the “Edit” button next to the “Retention settings” section.
    • Update the retention period as per your requirements. You can choose a value between 1 day to 10 years or select “Never Expire” if you want to retain logs indefinitely.
    • Click on the “Save changes” button to apply the new retention period.
  6. Verify the Changes: Once you have updated the retention period, you can verify the changes by checking the “Retention settings” section in the log group details.

By following these steps, you can remediate the misconfiguration of the CloudWatch Log Group retention period in AWS using the AWS Management Console.