Anti-DDoS Proxy stores full logs for a configurable period between 7 and 366 days. Adjust the storage duration to balance log retention needs against storage capacity.
How log storage works
After you enable the log analysis feature, Anti-DDoS Proxy stores logs for 180 days by default. The retention period starts from the day you enable the feature. When the configured duration elapses, new logs overwrite the oldest logs. For example, with a 180-day duration, logs generated on day 181 overwrite the logs from day 1.
A longer storage duration requires more log storage capacity.
If the log storage capacity is exhausted, new logs cannot be stored and are lost. If the log analysis feature expires, Anti-DDoS Proxy no longer stores logs. To prevent data loss, increase the log storage capacity before capacity runs out.
Prerequisites
Before you begin, make sure that you have:
The log analysis feature enabled. For more information, see Enable the log analysis feature.
Change the storage duration
Log on to the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Select Chinese Mainland.
Anti-DDoS Proxy (Outside Chinese Mainland): Select Outside Chinese Mainland.
In the left-side navigation pane, choose Investigation > Log Analysis.
On the Log Analysis page, click Storage Settings.
In the Storage Settings dialog box, set Log Storage Period to a value from 7 to 366 days.
Click OK.
Result
After you change the storage duration, the log analysis feature stores logs for the new duration and automatically overwrites expired logs.