Updated on 2024-04-12 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.

On the WAF console, you can view the event data for all protected domain names over the last 30 days.

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.
  • 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: Displays a summary of top tens about protected domain names you select for a time range.

  6. In the Events area, view the event details.

    • Configure a filter by combining several conditions. Click Add and select filter conditions displayed. Then, click OK. Table 1 lists parameters for filter conditions.
    • In the upper right corner of the event list, click to export events. If the number of events is less than 200, the events are exported to your local PC. If the number of events is greater than or equal to 200, the event record is displayed on the Download Events page. You can download the events on the Download Events page.
    • 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.
    • Click next to the source IP address to sort the event list in ascending or descending order of the origin server IP address.
    Table 1 Description of the conditions

    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.

    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

    Geolocation

    Location where the IP address of the attack originates from

    -

    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