By default, the Anti-DDoS Proxy log analysis instance stores full logs for 7 to 366 days. You can change the storage duration based on your business requirements. This topic describes how to change the storage duration of logs.
Prerequisites
The log analysis instance is enabled. For more information, see Enable the log analysis feature.
How it works
Default policy
After you enable the service, the system continuously stores the full DDoS attack logs of the last 180 days by default, in a rolling overwrite (first-in, first-out) manner.
NoteFor example, the log data of day 181 overwrites the log data stored on day 1, and so on. The system always retains the full logs of the last 180 days.
Custom storage duration
Log analysis allows you to customize the Log Storage Period, which ranges from 7 to 366 days. A longer storage period requires a larger storage capacity.
WarningWhen the storage capacity is exhausted, new logs cannot be written, which causes data loss. To ensure log continuity and integrity, expand the storage capacity promptly based on your business requirements. For more information, see Upgrade log storage capacity.
Procedure
Log on to the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Choose the Chinese Mainland region.
Anti-DDoS Proxy (Outside Chinese Mainland): Choose the Outside Chinese Mainland region.
In the left-side navigation pane, choose .
In the upper-right corner of the Log Analysis page, click Storage Settings.
In the Storage Settings dialog box, set Log Storage Period (unit: days).
NoteLog Storage Period ranges from 7 to 366 days. The default value is 180 days.
Click OK.
ImportantAfter you change the storage duration of logs, the log analysis instance stores only the logs within the specified duration and automatically deletes expired logs.