Appearance
Traffic log
The traffic log holds one record per request, allowed or not, from this node's own traffic log (admin guide section 30).
waap traffic list
Prints the newest records first.
sh
waap traffic list [-app NAME] [-client IP] [-method M] [-path P] [-host H] [-status N] [-action A] [-vip V] [-listener L] [-member ADDR:PORT] [-since T] [-until T] [-limit N] [-json] [-q FILTER] [-fields NAMES]| Flag | What it does | Default |
|---|---|---|
-app | Application. | |
-client | Client address. | |
-method | Request method. | |
-path | Path prefix. | |
-host | Host. | |
-status | Response status. | |
-action | Action taken. | |
-vip | VIP. | |
-listener | Virtual server. | |
-member | Pool member address:port. | |
-since | A duration such as 1h, or an RFC 3339 time. | |
-until | A duration or an RFC 3339 time. | |
-before | Used with until from a previous page to read the following page. | |
-limit N | Records per page, at most 1000. | 20 |
-json | JSON output. | |
-q FILTER | Adds a filter in the explorer's language (admin guide section 33.1), ANDed with the flags above. | |
-fields NAMES | Returns only the members those columns read, as for events. Without -json, the table shows only the columns that were returned. |
A full page has a next value, shown with -json. Pass its until as -until and its before as -before to read the following page.
sh
waap traffic list -app dvwa -status 502 -since 1h
waap traffic list -q 'status >= 500 and tls.ja4 exists' -since 1h
waap traffic list -json -fields client.ip,status,tls.ja4,client.asnAPI: GET /v1/traffic (and GET /v1/traffic?fields=... for -fields).
waap traffic show
Prints one record in full, with its flow as JSON. ID is the request ID: the event's traffic_id, or the record's id.
sh
waap traffic show IDAPI: GET /v1/traffic/{id}.
sh
waap traffic show REQUEST-IDwaap traffic export
Writes the matching records as JSON lines on standard output. The export is audited.
sh
waap traffic export [-app NAME] [-client IP] [-method M] [-path P] [-host H] [-status N] [-action A] [-vip V] [-listener L] [-member ADDR:PORT] [-since T] [-until T] [-max N] [-q FILTER]-max defaults to 10000 and is at most 100000.
API: POST /v1/traffic/export.
sh
waap traffic export -app dvwa -since 24h -max 50000 > dvwa-traffic.ndjsonNotes
- Values are as stored: complete unless the application masks them. A
viewerreceives masked values. - A record can be partial.
missingsays which half never arrived (data_planeorinspection). - Settings:
waap settings get|set trafficandpolicy.logging.*(seewaap apps fields).