Updated on 2024-03-14 GMT+08:00

Viewing Protection Event Logs

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.

Prerequisites

The website to be protected has been connected to WAF.

Constraints

  • If the security software installed on your server blocks the event file from being downloaded, close the software and download the file again.
  • 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. Enabling LTS for WAF Logging.
  • 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.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner and choose Web Application Firewall under Security.
  4. In the navigation pane on the left, choose Events.
  5. 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: WAF 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

  6. 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.
    • 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.
    Table 1 Search condition fields

    Parameter

    Parameter

    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, and Verification code.

    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.

    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

    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

    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

    The 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