Change Log Retention Period
You can change the log retention period via the control panel. Logs are deleted after the retention period expires. The default log retention period is 30 days.
-
In the control panel, on the top menu, click Products and select Logs.
-
Go to the Logs section.
-
In the menu for the log group, select Change Log Retention Period.
-
Select the number of days the log group logs will be stored. Note that the retention period is always counted from the date the logs appear. If the new retention period is shorter than the number of days the logs have already been stored in the service, the logs will be deleted within a day.
-
Optional: if you need to change the retention period for logs in multiple groups:
5.1. Select the Apply to other groups checkbox.
5.2. Select the groups for which you want to change the log retention period.
-
Enter the log group name.
-
Click Save.