Viewing Protection Event Logs

WAF only blocks or records attack events on the Events page. This topic describes how to view WAF protection event logs.

  • On the WAF console, you can view the event data for all protected domain names over the last 30 days. You can enable Log Tank Service (LTS) in WAF for long-term log storage. In LTS, you can view attack and access log details. For more details, see Enabling LTS for WAF Logging.
  • 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.

Prerequisites

The website to be protected has been connected to WAF.

Constraints

  • If you are using the detection edition, only attack events recorded for basic web protection can be viewed.
  • If the security software installed on your local PC blocks the event file being downloaded, close the software and download the file again.

Procedure

  1. Log in to the management console.
  2. Go to the Events page by following the steps shown in Figure 1.

    Figure 1 Events page

  3. Select the Search tab. Select a website from the All protected websites drop-down list, or select an instance from the All instances drop-down list, and choose to view protection events for Yesterday, Today, Past 3 days, Past 7 days, Past 30 days, or a custom time range. For details about parameters, see Table 1. Figure 2 shows an example.

    Figure 2 Viewing protection events
    Table 1 Event parameters

    Parameter

    Description

    Event Type

    Type of attack.

    By default, All is selected. You can view logs of all attack types or select an attack type to view corresponding attack logs.

    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

    Event ID

    ID of the event

    To view event details, click Details in the Operation column of the event list.

Event Parameters

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

None

Geolocation

Location where the IP address of the attack originates from

Shanghai

Domain Name

Attacked domain name

www.example.com

URL

Attacked URL

/admin

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. or 1>.1--

Event Type

Type of attack

SQL injection

Hit Rule

ID of the built-in basic web protection rule triggered by the attack event.

This field is displayed if the attack event is matched against one of the Basic Web Protection rules, for example, SQL injection, XSS, and file inclusion attacks.

223633

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