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. For Expire Events After, choose the retention setting to change.

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