Skip to content

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]
FlagWhat it doesDefault
-appApplication.
-clientClient address.
-methodRequest method.
-pathPath prefix.
-hostHost.
-statusResponse status.
-actionAction taken.
-vipVIP.
-listenerVirtual server.
-memberPool member address:port.
-sinceA duration such as 1h, or an RFC 3339 time.
-untilA duration or an RFC 3339 time.
-beforeUsed with until from a previous page to read the following page.
-limit NRecords per page, at most 1000.20
-jsonJSON output.
-q FILTERAdds a filter in the explorer's language (admin guide section 33.1), ANDed with the flags above.
-fields NAMESReturns 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.asn

API: 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 ID

API: GET /v1/traffic/{id}.

sh
waap traffic show REQUEST-ID

waap 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.ndjson

Notes ​

  • Values are as stored: complete unless the application masks them. A viewer receives masked values.
  • A record can be partial. missing says which half never arrived (data_plane or inspection).
  • Settings: waap settings get|set traffic and policy.logging.* (see waap apps fields).