Menu
Amazon CloudWatch Logs
User Guide

Change Log Data Retention in CloudWatch Logs

By default, log data is stored in CloudWatch Logs indefinitely. However, you can configure how long to store log data in a log group. Any data older than the current retention setting is automatically deleted. You can change the log retention for each log group at any time.

To change the logs retention setting

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

  2. In the navigation pane, choose Logs.

  3. Find the log group that you want to update.

  4. In the Expire Events After column for that log group, choose the current retention setting, such as Never Expire.

  5. In the Edit Retention dialog box, for Retention, choose a log retention value, and then choose Ok.