Appearance
Full logging, masking and the traffic log
Problems with event and traffic records, the values they keep, masking for viewers and PCI, exports, and the traffic log.
Events disappear before their retention (pruned by size)
- Symptom: old events are gone although
retentionhas not passed. There are fewer events thanmax_events. - Cause: with full values, events are larger. The oldest are deleted when events exceed
events.max_bytes(default 2 GiB). - Check:
waap settings get events, and the size of the event database in the data directory. - Fix: raise
max_bytes(up to 16 TiB), lowercapture_bodyor an application'slimits.request_body, or export what you need first withwaap events export.
A viewer sees masked values ([REDACTED], ****, masked: role)
- Symptom: a user sees masked snippets, cookies and tokens where an operator sees full values.
- Cause: by design, the
viewerrole always reads values masked. Or the application usespolicy.logging.mask: pci, which masks for everyone. The record then saysmasked: pci. - Check:
waap apps get -app NAME(policy.logging.mask), and the user's role. - Fix: give the user the operator role if they must see values. Or change
policy.logging.masktoofffor an application that is not in PCI DSS scope. The change applies to new events only; stored events keep their masking.
A value ends with …[truncated: N bytes]
- Symptom: a snippet, header or body in an event or traffic record is cut.
- Cause: values are kept only up to what the WAF inspected: the body up to the application's
limits.request_body, and a header up tolimits.header_bytes.capture_bodyor the trafficbodysetting may be smaller, or an explicitevents.capture_body(at most 64 KiB) applies. N is the full length. - Check: the capture's
body_truncated,headers_truncatedandheaders_omittedfields, and a reason'struncatedandfull_bytes. Alsowaap settings get eventsandwaap settings get traffic. - Fix: raise the application's limit (this also raises what is inspected). Clear
events.capture_bodyand the trafficbodysetting so they follow the limit. Or accept the cut, which bounds the disk use.
SIEM messages carry cut values
- Symptom: a SIEM message has a long path, snippet or body ending with
…[truncated: N bytes]. - Cause: a message over 64 KiB is sent with its long values cut and marked, so the collector accepts it. Only a message that is still too large is dropped (
waap_siem_dropped_total). - Check: the full event with
waap events show ID, andwaap siem status. - Fix: read the full value from the event store or an export. Leave
include_captureoff unless the collector needs the request and trace.
An export is refused: "max must be 1 to 100000"
- Symptom:
waap events exportorwaap traffic export(or the UI button) answers 400. - Cause:
-maxormaxis 0 or above 100000. The default is 10000. - Fix: export in slices with filters (
-since,-until,-app), using at most-max 100000.
The username shows in full in events
- Symptom: events of an application show the username, not its first character and a hash.
- Cause:
policy.logging.mask: off(the default) shows the username in full whenever session attribution is on. Underpciit is hashed. Withattribution: off, no one is named. - Check:
waap apps get -app NAME(forpolicy.logging.mask), andwaap sessions get -app NAME. - Fix: set
policy.logging.mask=pci, or runwaap sessions set -app NAME attribution=off.
Traffic records are partial: missing: data_plane
- Symptom: records have no
upstreampart (no pool member and no upstream times),partial: true, andwaap_traffic_records_partial_totalrises. - Cause: Envoy's access log half never reached the inspection service within 30 seconds. Possible reasons: the socket is not connected, Envoy was not given the log (the
waap-access-logcluster is missing from its configuration), or Envoy and inspection run from different runtime directories. - Check:
ls <runtime-dir>/access-log.sock. Check Envoy's clusters withcurl --unix-socket <runtime-dir>/envoy-admin.sock http://x/clusters | grep waap-access-log.waap_xds_in_syncmust be 1, andwaap_traffic_joiner_entriesshould not stay high. - Fix: restart the node, so the socket and Envoy's configuration are created together. Make sure the control process and the inspection service share the runtime and data directories.
missing: inspectionon a record means a request matched no route, so Envoy answered it without inspection. That is expected.
waap_traffic_records_dropped_total rises
- Symptom: the counter grows, and some requests have no traffic record.
- Cause: the write queue was full, because the disk is too slow for the request rate, or a write failed. Requests are never delayed. Records are dropped.
- Check: the node's log for
trafficwrite errors. Check the free disk space and the disk speed of the data directory. - Fix: use
mode: sample(or an application'spolicy.logging.traffic=sample), lowerbody, move the data directory to faster storage, or free disk space.
Events have no upstream part
- Symptom: an event's flow lacks the pool member and timings.
waap_events_upstream_dropped_totalrises. - Cause: the data-plane half arrived, but its event was never stored (it was allowed without an event), the write queue was full, or the node is a high-availability peer.
upstreamis not copied between nodes, so an event received from the peer has none. - Check: the node named in the event, and
waap_events_upstream_added_totalagainstwaap_events_upstream_dropped_total. - Fix: read the event on the node that inspected the request. SIEM messages usually omit
upstream, because they are exported as soon as the event is stored.
traffic.db is large and does not shrink
- Symptom: the file in the data directory stays large after retention deleted records.
- Cause: SQLite reuses freed space instead of returning it to the system. Growth is bounded by
traffic.max_bytes(default 5 GiB),max_recordsandretention. - Check:
ls -l <data-dir>/traffic.db, andwaap settings get traffic. - Fix: lower
max_bytes,retentionorbodyto bound the size. To return the space, stop the node and removetraffic.db. The history is lost, and the file is not included in backups.
The traffic log shows nothing (mode off or sampled)
- Symptom: the Traffic log is empty, or it has only some requests.
- Cause:
traffic.modeisoff, orsample(10 percent by default). The application may also override it withpolicy.logging.traffic. Records are kept per node, and the page shows the node you are connected to. - Check:
waap settings get traffic,waap apps get -app NAME(policy.logging.traffic), and retention (default 7 days). - Fix: run
waap settings set traffic mode=all, andwaap apps set -app NAME policy.logging.traffic=inherit.