WAF integrates Log Service to provide the Log Service for WAF feature. This feature collects logs of websites protected by WAF in a near-real-time manner, allows you to query and analyze the collected log data, and displays results on dashboards. This feature meets the classified protection requirements and your website protection and operations requirements. This topic describes how to enable the Log Service for WAF feature.
Enable Log Service for WAF for a subscription WAF instance
- Log on to the Web Application Firewall console.
- In the top navigation bar, select the resource group to which the instance belongs and the region, Mainland China or International, in which the instance is deployed.
- In the left-side navigation pane, choose .
- On the Log Service page, click Upgrade.Note If the Log Service for WAF feature is enabled, the Upgrade button is not displayed.
- On the Upgrade/Downgrade page, set Access Log Service to YES. Then, specify Log Storage Period and Log Storage Size based on your business requirements.
- Click Buy Now and complete the payment.
- Optional:Authorize WAF to access Log Service.If this is the first time you enable Log Service for WAF, you must authorize WAF to access Log Service. If you have already completed the authorization, skip this step.
To authorize WAF to access Log Service, perform the following operations:
- On the Log Service page, click Authorize Now.Note If you have already completed the authorization, Authorize Now is not displayed.
- On the Cloud Resource Access Authorization page, click Confirm Authorization Policy.
- On the Log Service page, click Authorize Now.
What to do next
After you enable the Log Service for WAF feature, you must enable log collection for domains that are protected by WAF. For more information, see Enable log collection.