All Products
Search
Document Center

Anti-DDoS:Manage log storage capacity

Last Updated:Oct 09, 2026

Modify your log storage capacity or delete all stored logs for Anti-DDoS Proxy Log Analysis.

Background

If your log storage requirements change, you can upgrade or downgrade the capacity. For example, collecting logs for a new website increases storage needs, while reducing the log retention period decreases them.

Prerequisites

Log Analysis is enabled.

Calculate log storage capacity

Estimate the required log storage capacity based on the average queries per second (QPS) of your website:

In most cases, each request log requires approximately 2 KB of storage. For a website with an average throughput of 500 queries per second (QPS), daily log generation is approximately 86,400,000 KB (about 82 GB), calculated as 500 × 60 × 60 × 24 × 2. Retaining these logs for 180 days requires approximately 15,552,000,000 KB of storage (about 14.5 TB), calculated as 86,400,000 × 180.

When log storage is full

When log storage is full, new logs are lost. Resolve this in one of the following ways:

  • (Recommended) Upgrade your log storage capacity. For more information, see Upgrade log storage capacity.

  • Delete stored log data and reduce the log retention period. For more information, see Delete logs and Set the log retention period.

    Important
    • This action is irreversible. Proceed only if you no longer need the stored log data.

    • Each Alibaba Cloud account can delete logs only twice. Avoid deleting logs frequently. If your log storage capacity is insufficient, we recommend upgrading it promptly.

Check log storage capacity

  • Check your log storage usage. If the storage is nearly full, you can click Upgrade to increase the capacity or click Delete to remove all log data.

  • The log storage usage shown in the console is not updated in real time. The displayed value lags about two hours behind the actual usage.

  • While your Log Analysis instance is active, Anti-DDoS Proxy sends automatic alerts. When storage usage exceeds 80%, you will receive a daily alert in Message Center. The alerts stop when usage drops below 80%.

Note

Monitor your log storage usage regularly. If usage exceeds 70%, upgrade your log storage capacity promptly to avoid losing new logs. If significant capacity remains unused for an extended period, downgrade it to match your actual log volume.

Upgrade log storage capacity

If your current log storage capacity is insufficient, upgrade it.

  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 a Chinese Mainland region.

    • Anti-DDoS Proxy (Outside Chinese Mainland): Choose a region Outside Chinese Mainland.

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

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

  5. On the Upgrade page, select a log storage capacity greater than your current one, and read the Terms of Service.

    For example, if your current log storage capacity is 3 TB, you must select a specification of 5 TB or larger.

  6. Click Buy Now and complete the payment.

    After you upgrade the log storage capacity, you can view the new capacity and usage in the upper-right corner of the Log Analysis page.

Downgrade log storage capacity

If your current log storage capacity is excessive, downgrade it.

  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 a Chinese Mainland region.

    • Anti-DDoS Proxy (Outside Chinese Mainland): Choose a region Outside Chinese Mainland.

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

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

  5. On the Downgrade page, select a log storage capacity smaller than your current one, and select the checkbox to agree to the Terms of Service.

    For example, if your current log storage capacity is 10 TB, you must select a specification of 5 TB or smaller.

  6. Click Buy Now and complete the payment.

    After you downgrade the log storage capacity, you can view the new capacity and usage in the upper-right corner of the Log Analysis page.

Delete logs

Delete all stored logs at once to free up log storage space.

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

    Important

    You cannot perform the Delete operation if your log storage is empty.

  5. In the Are you sure that you want to delete all logs? dialog box, click OK.

    Each Alibaba Cloud account can manually delete logs only twice. Avoid deleting logs frequently. If your log storage capacity is insufficient, we recommend upgrading it promptly.

    Important

    Log deletion is irreversible. Proceed with caution.

    After you delete the logs, it takes 2 to 3 hours for the updated storage usage to appear in the upper-right corner of the Log Analysis page.