All Products
Search
Document Center

Anti-DDoS:Change the storage duration of logs

Last Updated:Jun 27, 2024

The log analysis feature of Anti-DDoS Proxy can store full logs for 7 to 180 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 feature is enabled. For more information, see Enable the log analysis feature.

Background information

By default, after you enable the log analysis feature, Anti-DDoS Proxy stores logs for 180 days starting from the day that you enable the feature. If the log storage capacity is insufficient or the log analysis feature expires, Anti-DDoS Proxy no longer stores logs. Logs that are generated on the first day after the 180-day log storage duration overwrite the logs that are generated on the first day of the 180-day log storage duration.

You can specify a log storage duration in a range from 7 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 Proxy console.

  2. In the top navigation bar, select the region of your instance.

    • Anti-DDoS Proxy (Chinese Mainland): If your instance is an Anti-DDoS Proxy (Chinese Mainland) instance, select Chinese Mainland.

    • Anti-DDoS Proxy (Outside Chinese Mainland): If your instance is an Anti-DDoS Proxy (Outside Chinese Mainland) instance, select Outside Chinese Mainland.

  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 Log Storage Period parameter. Unit: days.

    You can specify a value in a range from 7 days to 180 days.

  6. Click OK.

    After you change the log storage duration, the log analysis feature stores logs for the duration that you specify and automatically overwrites expired logs.