Appearance
Security events
Security events record each block, challenge and logged finding. These commands list and group them, show one in detail, export them, explain why a request was decided, and propose an exception for it.
waap events list
Lists security events, newest first.
sh
waap events list [-app NAME] [-rule R] [-client IP] [-path P] [-action A] [-since T] [-until T] [-identity KEY] [-limit N] [-q FILTER] [-fields NAMES] [-json]Filters: -app, -rule, -client, -path (prefix), -action (block, log, allow, would_block, and others), -since, -until, -identity (a client identity key, see waap identity). Each filter may be repeated. The output has an IDENTITY column.
| Flag | What it does | Default |
|---|---|---|
-limit N | Number of events to list. | 20 |
-q FILTER | Adds a filter in the explorer's language (admin guide section 33.1), ANDed with the other flags. A filter the server refuses exits with 1 and prints the reason and position. waap analytics fields lists the field names. | |
-fields NAMES | Returns only the members those columns read: catalogue names, comma-separated, at most 64. The event's time, ID, application and node are always kept. Unknown names, traffic-only names and names the viewer role may not use are refused (exit 1). |
-fields maps to the API as GET /v1/events?fields=... (admin guide 33.7).
sh
waap events list -app blog -action would_block -since 24h
waap events list -q 'attack.score >= 50 and client.country = RU' -since 24h
waap events list -json -fields rule,client.asn,tls.ja4The Dashboard and application Overview count links use the same action=would_block API filter and Events outcome. -action would_block selects explicit detect refusals only, excluding ordinary logs.
waap events top
Groups events and counts them.
sh
waap events top [-app NAME] [-rule R] [-client IP] [-path P] [-action A] [-since T] [-until T] [-identity KEY] [-by rule|path|client_ip|app|country|module] [-q FILTER] [-json]-by defaults to rule. module counts each event once per module that gave a reason, with virtual patch rules as virtual_patches. It takes the same filters as list.
waap events show
Prints one event with its reasons, trace and captured request.
sh
waap events show IDwaap events export
Prints the matching events as JSON lines on standard output, newest first, with their captures and traces. It takes the same filters as list.
sh
waap events export [-app NAME] [-rule R] [-client IP] [-path P] [-action A] [-since T] [-until T] [-identity KEY] [-max N] [-q FILTER]| Flag | What it does | Default |
|---|---|---|
-max N | Maximum number of events. At most 100000; above it the request is refused with "max must be 1 to 100000". | 10000 |
Each export is recorded in the audit log with its filter and count. Values are as stored: complete unless the application masks them (policy.logging.mask, admin guide section 29). A viewer receives them masked (masked: role). A cut value ends with …[truncated: N bytes].
API: POST /v1/events/export.
waap explain
Explains why the request was blocked or allowed: matched rules, the matched field and its value (complete unless the application masks values), and every module's decision and time.
sh
waap explain EVENT-IDwaap except
Proposes the narrowest exception that would have let the event's request through.
sh
waap except [-apply -m WHY] EVENT-IDWith -apply it adds the exception as a new version and rolls it out. To list, change or remove exceptions afterwards, use waap rules ... -list exceptions (see Access rules, rate limits and exceptions).
For API rules (api.*), the exception names the rule and the JSON pointer or XML path, for example in: ["json:/content/html"]. api.xml.dtd is never excepted.
sh
waap except EVENT-ID
waap except -apply -m "known client" EVENT-ID