All Products
Search
Document Center

Anti-DDoS:Change the storage duration of logs

Last Updated:Oct 22, 2026

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.

    Note

    For 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.

    Warning

    When 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

  1. Log on to the Anti-DDoS Proxy console.

  2. 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.

  3. In the left-side navigation pane, choose Analysis > Log Analysis.

  4. In the upper-right corner of the Log Analysis page, click Storage Settings.

  5. In the Storage Settings dialog box, set Log Storage Period (unit: days).

    Note

    Log Storage Period ranges from 7 to 366 days. The default value is 180 days.

  6. Click OK.

    Important

    After you change the storage duration of logs, the log analysis instance stores only the logs within the specified duration and automatically deletes expired logs.