After you enable Log Service for WAF, you are allocated log storage space based on the capacity you selected. When storage is full, WAF stops writing logs to the dedicated Logstore. Monitor usage regularly, upgrade capacity before it runs out, and clear log data only when necessary.
Prerequisites
Before you begin, ensure that you have:
Log Service for WAF enabled. For more information, see Enable Log Service for WAF
View log storage usage
Usage statistics are delayed by two hours. Expand capacity before it is exhausted — do not wait for the indicator to reach 100%.
Log on to the WAF console. In the top navigation bar, select the resource group and region where your WAF instance is deployed. The region can be Chinese Mainland or Outside Chinese Mainland.
In the left-side navigation pane, choose Detection and Response > Log Service.
In the upper corner of the Log Service page, view your current log storage usage.
Upgrade log storage capacity
When log storage is exhausted, WAF stops writing logs to the dedicated Logstore. Upgrade before capacity runs out to avoid gaps in your log data.
Log on to the WAF console. In the top navigation bar, select the resource group and the region where your WAF instance is deployed.
In the left-side navigation pane, choose Detection and Response > Log Service.
In the upper-right corner of the Log Service page, click Upgrade Storage.
On the page that appears, select a larger storage capacity and complete the payment.
For available capacity options and pricing, see Overview of the Log Service for WAF feature.
Clear log storage space
Clearing log data immediately frees storage space. Use this option only when you cannot upgrade capacity or need to reset your logs.
Cleared log data cannot be restored. After Log Service for WAF is activated, you can clear log storage a maximum of four times.
Log on to the WAF console. In the top navigation bar, select the resource group and the region where your WAF instance is deployed.
In the left-side navigation pane, choose Detection and Response > Log Service.
In the upper-right corner of the Log Service page, click Clear.
In the confirmation dialog box, click OK.
All log data in your dedicated Logstore is permanently deleted.
What's next
To analyze and query your WAF logs, go to Detection and Response > Log Service in the WAF console.
To learn about log storage capacity options, see Overview of the Log Service for WAF feature.