Change the CloudWatch log group retention period - Security Insights on AWS

Change the CloudWatch log group retention period

The solution's Lambda functions create CloudWatch log groups. These log groups have a retention period of one year and record information about how the Lambda functions run. To change the retention period, follow these steps:

  1. Sign in to the CloudFormation console.

  2. Choose this solution's stack.

  3. Select the Resources tab, and choose Flat view.

  4. Enter logs in the Search resources box.

  5. Choose the log group that you want to edit.

  6. Choose Actions. Select Edit retention setting(s), then select the option that you want for the retention period of the log group.

If you want to change the retention period for multiple functions using the same log group, you can update the retention period in CloudWatch Logs. For more information, see Change log data retention in CloudWatch Logs in the Amazon CloudWatch Logs User Guide.