By default, the Log Analysis feature stores full logs for 180 days. You can customize the log storage duration based on your business requirements. You can specify a value that ranges from 30 days to 180 days.

Prerequisites

The Log Analysis feature is enabled for your Anti-DDoS Pro or Anti-DDoS Premium instance.

For more information, see Step 1: Enable Log Analysis.

Background information

After you enable the Log Analysis feature, Anti-DDoS Pro or Anti-DDoS Premium stores logs for 180 days starting from the day when you enable the feature. If you want to store logs, make sure that the log storage capacity is sufficient and your Log Analysis instance is within its validity period. Anti-DDoS Pro and Anti-DDoS Premium store logs that are generated within the last 180 days. Logs that are generated on the first day after the 180-day log storage duration overwrite the logs generated on the first day of the previous 180-day log storage duration.

You can customize the log storage duration based on your business requirements. You can specify a value that ranges from 30 days to 180 days. The required log storage capacity increases with the log storage duration.

If the log storage capacity is exhausted, new logs cannot be stored and are lost. In this case, we recommend that you increase the log storage capacity. For more information, see Increase the log storage capacity.

Procedure

  1. Log on to the Anti-DDoS Pro console.
  2. In the top navigation bar, select the region where your instance resides.
    • Mainland China: If you select this region, the Anti-DDoS Pro console appears.
    • Outside Mainland China: If you select this region, the Anti-DDoS Premium console appears.
    You can switch the region to configure and manage Anti-DDoS Pro or Anti-DDoS Premium instances. Make sure that you select the required region when you use Anti-DDoS Pro or Anti-DDoS Premium.
  3. In the left-side navigation pane, choose Investigation > Log Analysis.
  4. In the upper-right corner of the Log Analysis page, click Details.
  5. In the Details dialog box, configure the Storage Period parameter. Unit: days.
    You can specify a value that ranges from 30 days to 180 days. Log storage duration
  6. Click OK.
    After you modify the log storage duration, the Log Analysis feature stores logs within the duration that you specify and automatically deletes expired logs.