Querying a Protection Event
On the Events page, you can view events generated for blocked attacks and logged-only attacks. You can view details of events generated by WAF, including the occurrence time, attack source IP address, geographic location of the attack source IP address, malicious load, and hit rule for an event.
If you have enabled enterprise projects, you can select your enterprise project from the Enterprise Project drop-down list and view protection event logs in the project.
Constraints
- On the WAF console, you can view the event data for all protected domain names over the last 30 days. You can authorize LTS to log WAF activities so that you can view attack and access logs and store all logs for a long time. For more details, see Using LTS to Log WAF Activities.
- If you switch the WAF working mode for a website to Suspended, WAF only forwards all requests to the website without inspection. It does not log any attack events neither.
Viewing Protection Event Logs
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner and choose Web Application Firewall under Security & Compliance.
- In the navigation pane on the left, choose Events.
- Click the Search tab. In the website or instance drop-down list, select a website to view corresponding event logs. The query time can be Yesterday, Today, Past 3 days, Past 7 days, Past 30 days, or a time range you configure.
- Events over Time: displays the WAF protection status of the selected website within the selected time range.
- Top Tens: displays top 10 attacks, attacked websites, attack source IP addresses, and attacked URLs for a selected time range. You can click to copy the data in the corresponding chart.
Figure 1 Events
- In the Events area, view the event details.
- Configure a filter by combining several conditions. Then, click OK. Conditions will be displayed above the event list. Table 2 lists parameters for filter conditions.
- In the upper left corner of the event list, click Export to export events. If the number of events is less than 200, the events are exported to your local PC.
- Click to select fields you want to display in the event lists.
- To view event details, locate the row containing the event and click Details in the Operation column.
Figure 2 Events
Table 1 Filter condition fields Parameter
Description
Event ID
ID of the event.
Event Type
Type of the attack.
By default, All is selected. You can view logs of all attack types or select an attack type to view corresponding attack logs.
Rule ID
ID of a built-in protection rule in WAF basic web protection.
Protective Action
The options are Block, Log only, Verification code, and Mismatch.
- Verification code: In CC attack protection rules, you can set Protective Action to Verification code. If a visitor sends too many requests, with the request quantity exceeding the rate limit specified by the CC attack protection rule used, a message is displayed to ask the visitor to provide a verification code. Visitor's requests will be blocked unless they enter a valid verification code.
- Mismatch: If an access request matches a web tamper protection rule, information leakage prevention rule, or data masking rule, the protective action is marked as Mismatch.
Source IP Address
Public IP address of the web visitor/attacker.
By default, All is selected. You can view logs of all attack source IP addresses, select an attack source IP address, or enter an attack source IP address to view corresponding attack logs.
URL
Attacked URL.
Status Code
HTTP status code returned on the block page.
Domain Name
Attacked domain name.
Table 2 Parameters in the event list Parameter
Description
Example Value
Time
When the attack occurred.
2021/02/04 13:20:04
Source IP Address
Public IP address of the web visitor/attacker.
-
Domain Name
Attacked domain name.
www.example.com
Geolocation
Location where the IP address of the attack originates from.
-
Rule ID
ID of a built-in protection rule in WAF basic web protection.
-
URL
Attacked URL.
/admin
Event Type
Type of attack.
SQL injection
Protective Action
Protective actions configured in the rule. The options are Block, Log only, and Verification code.
NOTE:If an access request matches a web tamper protection rule, information leakage prevention rule, or data masking rule, the protective action is marked as Mismatch.
Block
Status Code
HTTP status code returned on the block page.
418
Malicious Load
Location or part of the attack that causes damage or the number of times that the URL was accessed.
NOTE:- In a CC attack, the malicious load indicates the number of times that the URL was accessed.
- For blacklist protection events, the malicious load is left blank.
id=1 and 1='1
Enterprise Project
Enterprise project your websites belong to.
default
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot