Skip to content

Event and log fields Since v0.1 ​

This page lists the fields of a security event, of a traffic log record and of a SIEM message. The management API, waap events, waap traffic and the web console return the same JSON names. Fields marked Since v0.2 were added in v0.2.

Module names, rule ID ranges and the action and mode values are on Modules, rule IDs and values.

How to read the tables ​

  • When present: fields marked "omitted when empty" are left out of the JSON when they hold no value (empty string, 0, false, empty list or no object).
  • Masked under pci: "yes" means the value is masked when the application sets policy.logging.mask: pci. The viewer role sees the same fields masked on read, whatever the application's mask setting. The masked field says which treatment applies. For details, see Full logging and masking.
  • Cut values: a value cut at its size bound ends with …[truncated: N bytes], where N is the full length. See Truncation markers.

Security event ​

A security event records one inspected request that produced at least one reason, or an inspection failure. The event is stored as one JSON document and returned unchanged by the API.

Event fields ​

FieldTypeMeaningWhen presentMasked under pci
timestring (RFC 3339 time)When the request was inspected.alwaysno
transaction_idstringThe request ID. It joins the event to its traffic record and to the data plane's access log.alwaysno
nodestringThe node that inspected the request.omitted when emptyno
applicationstringThe application the request matched.alwaysno
server_pool Since v0.2stringThe server pool of the application.omitted when emptyno
policy_versionstringThe configuration version that inspected the request.omitted when emptyno
client_ipstringThe client address after trusted-proxy evaluation.alwaysno
countrystringCountry of the client address, from the geo database.omitted when emptyno
methodstringHTTP method.alwaysno
hoststringHost header.alwaysno
pathstringPath and query as received.alwaysyes, query values
actionstringWhat the pipeline did: allow, log, challenge or block.alwaysno
modestringThe application's mode: detect or block.alwaysno
would_blockbooleanIn detect mode, the request would have been blocked in block mode.omitted when falseno
statusintegerHTTP status of the product's own answer.omitted when 0no
anomaly_scoreintegerSum of the signature anomaly scores.omitted when 0no
duration_usintegerInspection time in microseconds.alwaysno
reasonslist of reasonEvery match that contributed.omitted when emptyyes, see reason
errorstringAn inspection failure that the failure policy handled.omitted when emptyno
tracetraceWhat each module did with the request.omitted when no trace was keptno
capturecaptureThe request kept for investigation.omitted when no capture was keptyes
botbotBot mitigation's view of the client.when the bot module ranpartly, see bot
userstringThe user that the session belongs to.omitted when emptyyes: under pci the first character and six hex digits of a keyed hash; for a viewer, the first character only
identity Since v0.2identityWho the client was, from client identity.omitted when no identity was resolvedyes, the label
soap Since v0.2soapThe SOAP operation of the request.when an XML contract matchedno
asn Since v0.2integerAutonomous system number of the client.omitted when 0no
as_org Since v0.2stringOrganisation of that autonomous system.omitted when emptyno
city Since v0.2stringCity of the client address.omitted when emptyno
ja4 Since v0.2stringTLS fingerprint of an HTTPS request.omitted when emptyno
attack Since v0.2attackThe attack score.when the signature module scored the requestno
masked Since v0.2stringpci when recorded under masking, role when masked on read for the reader's role.omitted when values are in fullnot applicable
upstream Since v0.2upstreamThe data plane's half of the request.after the access log arrivesno
traffic_id Since v0.2stringThe ID of the request's traffic record.set on read, never stored; omitted when no record existsno

Reason ​

Each entry in reasons explains one match. A block without a reason is a bug, so every blocked event has at least one.

FieldTypeMeaningWhen presentMasked under pci
modulestringThe module that matched. See module names.alwaysno
rule_idstringThe rule that matched. See rule ID ranges.alwaysno
messagestringWhat the rule found, in words.omitted when emptyyes, clipped to 160 bytes
variablestringThe request part that matched, for example ARGS or REQUEST_HEADERS.omitted when emptyno
keystringThe parameter or header name inside the variable.omitted when emptyno
snippetstringThe matched value.omitted when emptyyes
severitystringThe rule's severity.omitted when emptyno
modestringThe module's effective mode: detect or block.omitted when emptyno
stagedbooleanThe rule is staged and only logs until its date.omitted when falseno
enforcedbooleanThe rule blocks although its module is in detect mode (a virtual patch set to enforce: block).omitted when falseno
tagslist of stringsThe rule's tags.omitted when emptyno
truncated Since v0.2booleansnippet was cut at its size bound.omitted when falsecleared by masking
full_bytes Since v0.2integerThe full length of the cut snippet in bytes.omitted when 0cleared by masking

Trace ​

trace holds one step per module and phase. Records in the traffic log carry the same object.

FieldTypeMeaningWhen presentMasked under pci
exceptionslist of stringsNames of the exceptions that applied.omitted when emptyno
stepslist of stepsThe steps, in the order the modules ran.alwaysno
steps[].modulestringThe module, or limits for the limit check.alwaysno
steps[].phasestringrequest, response or response_stream.alwaysno
steps[].modestringThe effective mode of the module.alwaysno
steps[].actionstringallow, log, challenge, block, error or skipped.alwaysno
steps[].reasonsintegerHow many reasons the step produced.omitted when 0no
steps[].duration_usintegerTime spent in microseconds.alwaysno
steps[].notestringThe error text, or why the step was skipped.omitted when emptyno
steps[].changeslist of stringsChanges the module made to the request or response.omitted when emptyno
steps[].would_changelist of stringsChanges the module would make in block mode.omitted when emptyno

Capture ​

capture is the request (in an event) or the request and the response (in the traffic log) as kept for investigation.

FieldTypeMeaningWhen presentMasked under pci
headersobject (name to value)The headers kept.omitted when emptyyes, sensitive headers become [redacted], others are masked and clipped to 256 bytes
bodystringThe first bytes of the body, escaped.omitted when emptyyes; left out for uploaded files
body_bytesintegerSize of the inspected body.alwaysno
body_omittedstringWhy no body was kept, for example files.omitted when emptyset to files by masking
body_truncated Since v0.2booleanbody holds only the first bytes of body_bytes.omitted when falsecleared by masking
body_files Since v0.2booleanThe body carries uploaded files.omitted when falseno
headers_truncated Since v0.2object (name to bytes)Each header cut at its bound, with its full length.omitted when emptycleared by masking
headers_omitted Since v0.2integerHow many headers beyond the kept number were left out.omitted when 0no

Bot ​

FieldTypeMeaningWhen presentMasked under pci
scoreintegerThe client's bot score.alwaysno
stepstringThe ladder action reached.omitted when below the first stepno
step_atintegerThe score of that step.omitted when 0no
signalslistEach signal in the score: rule, weight (its decayed share) and seen (time).omitted when emptyno
ja3, ja4, ja4hstringThe client's fingerprints.omitted when emptyno
user_agentstringThe user agent, truncated.omitted when emptyyes
known_clientstringThe known client the request matched.omitted when emptyno
botstringThe bot catalog entry that the user agent claims.omitted when emptyno
categorystringThat entry's category.omitted when emptyno
verificationstringHow the claim was checked: ranges or dns (verified), failed, pending or none.omitted when emptyno
verified_namestringThe DNS name that verified, or failed to verify, the claim.omitted when emptyno
tokenstringThe client's challenge token state: js or captcha (valid), expired or invalid.omitted when no tokenno
scored_bystringtoken when a token holder is scored by its token instead of its address.omitted when emptyno
loginstringThe watched login endpoint of the attempt.omitted when emptyno
usernamestringThe username of the login attempt.omitted when emptyyes, first character and a keyed hash
class Since v0.2stringAutomation class: automated, likely_automated or likely_human.omitted when emptyno
norm_score Since v0.2integerNormalised score from 1 to 99.omitted when 0no
tags Since v0.2list of stringsTags of the signals' families.omitted when emptyno

Identity and SOAP ​

FieldTypeMeaningWhen presentMasked under pci
identity.kindstringThe kind of identity, for example ip or ip_ja4.always in the objectno
identity.keystringThe identity key.always in the objectno
identity.labelstringA readable label.omitted when emptyyes, except for ip and ip_ja4 labels
soap.versionstringThe SOAP version.always in the objectno
soap.operationstringThe first element of the SOAP body, bounded.always in the objectno
soap.contractstringThe name of the configured contract.omitted when emptyno

Attack score ​

FieldTypeMeaningWhen presentMasked under pci
scoreintegerThe attack score from 1 to 99.always in the objectno
classstringattack (75 to 99), likely_attack (50 to 74), unlikely_attack (2 to 49) or clean (1).always in the objectno
rawintegerThe raw anomaly score.omitted when 0no
thresholdintegerThe threshold the score is scaled by.omitted when 0no
sqli, xss, cmd, file, otherintegerSub-scores per attack class, each 1 to 99.omitted when 0 (not computed)no

Upstream ​

upstream is the data plane's half of the request. Times are in microseconds. The same object is in the traffic log.

FieldTypeMeaningWhen presentMasked under pci
local_addressstringThe address and port the client connected to.omitted when emptyno
listenerstringThe virtual server.omitted when emptyno
vipstringThe VIP the virtual server uses.omitted when emptyno
client_addressstringThe client address and port as the data plane saw them.omitted when emptyno
peer_addressstringThe TCP peer, a proxy or the client.omitted when emptyno
tls_version, tls_cipher, snistringThe TLS session.omitted when emptyno
http_versionstringThe HTTP version.omitted when emptyno
routestringThe route (application) the data plane chose.omitted when emptyno
poolstringThe server pool; empty for a block page.omitted when emptyno
memberstringThe pool member that served the request.omitted when emptyno
upstream_start_usintegerWhen the request started going to the member.omitted when 0no
upstream_first_byte_usintegerThe member's time to its first response byte.omitted when 0no
upstream_total_usintegerTime from the first byte sent to the last byte received.omitted when 0no
attemptsintegerConnection attempts to members.omitted when 0no
response_flagslist of stringsThe data plane's response flags.omitted when emptyno
response_detailsstringThe data plane's response details.omitted when emptyno
statusintegerThe status sent to the client.omitted when 0no
bytes_received, bytes_sentintegerRequest and response sizes.alwaysno
duration_usintegerTotal request duration.alwaysno
upstream_failurestringThe data plane's reason a connection to the member failed.omitted when emptyno

Traffic log record ​

A traffic log record is one request, allowed or not. It joins the inspection half and the data plane's half by request ID. For how records are selected and stored, see Traffic log.

All fields below are Since v0.2.

Request and verdict ​

FieldTypeMeaningWhen presentMasked under pci
idstringThe request ID, equal to the event's transaction_id.alwaysno
nodestringThe node that stored the record.omitted when emptyno
timestring (RFC 3339 time)When the request arrived.alwaysno
applicationstringThe application.omitted when emptyno
listenerstringThe virtual server.omitted when emptyno
vipstringThe VIP of the virtual server.omitted when emptyno
client_ipstringThe client address.omitted when emptyno
client_portintegerThe client port.omitted when 0no
countrystringCountry of the client address.omitted when emptyno
methodstringHTTP method.omitted when emptyno
schemestringhttp or https.omitted when emptyno
hoststringHost header.omitted when emptyno
urlstringPath and query.omitted when emptyyes, query values
http_versionstringThe HTTP version.omitted when emptyno
requestcaptureRequest headers and body, bounded by traffic.body.omitted when noneyes
userstringThe user that the session belongs to.omitted when emptyyes
bot_classstringThe bot catalog category, or the known client.omitted when emptyno
bot_namestringThe bot catalog entry.omitted when emptyno
actionstringallow, log, challenge or block.omitted when emptyno
modestringdetect or block.omitted when emptyno
would_blockbooleanThe request would have been blocked in block mode.omitted when falseno
anomaly_scoreintegerThe signature anomaly score.omitted when 0no
rule_idslist of stringsThe distinct rule IDs of the reasons.omitted when emptyno
block_statusintegerThe status of the product's own answer.omitted when 0no
errorstringAn inspection failure that the failure policy handled.omitted when emptyno
has_eventbooleanA security event exists for this request.omitted when falseno
event_idstringThe event's ID.omitted when emptyno
tracetraceRequest and response steps.omitted when noneno
inspection_usintegerTime from the request's arrival at inspection to its end.omitted when 0no

Response and join state ​

FieldTypeMeaningWhen presentMasked under pci
response_statusintegerThe status inspection saw.omitted when 0no
responsecaptureResponse headers, and the body when inspection received it.omitted when no responseyes
response_body_notestringWhy there is no response body.omitted when emptyno
upstreamupstreamThe data plane's half.omitted until it arrivesno
partialbooleanOne half never arrived within the join window.omitted when falseno
missingstringThe missing half: data_plane or inspection.omitted when partial is falseno
maskedstringpci or role, as in the event.omitted when values are in fullnot applicable

response_body_note holds one of these texts:

TextCause
response body logging is off for this applicationThe application does not log response bodies.
the response was not in the response scope (type, size, stream or path skipped)No module read the body and logging did not ask for it.
the request was answered by the product itselfA block page or challenge was the answer.
the body's content-encoding is not decodedThe body uses a content encoding that inspection does not decode.

Enrichment and scores ​

The traffic writer adds these before it stores the record.

FieldTypeMeaningWhen presentMasked under pci
asn, as_orginteger, stringAutonomous system number and organisation.omitted when emptyno
continent, region, citystringLocation of the client address.omitted when emptyno
device, browser, osstringParsed from the user agent.omitted when emptyno
user_agentstringThe user agent, at most 256 bytes.omitted when emptyno
referer_hoststringHost of the Referer header.omitted when emptyno
extstringFile extension of the path.omitted when emptyno
requested_withstringThe X-Requested-With header.omitted when emptyno
ja3, ja4stringTLS fingerprints of an HTTPS request.omitted when emptyno
ja4hstringHTTP fingerprint, when the bot module ran.omitted when emptyno
endpointstringThe API endpoint template the request matched.omitted when emptyno
api_specstringThe API specification of that endpoint.omitted when emptyno
api_labelstringThe endpoint's risk label.omitted when emptyno
attackattackThe attack score.omitted when not scoredno
automationobjectscore (1 to 99), class, detections (IDs of contributing signals), tags, token and verified (a verified catalog bot).omitted when not scoredno

WARNING

user_agent, referer_host and requested_with are request values. The masking code does not change them, so they are escaped and bounded but not masked.

SIEM export formats ​

A SIEM destination sends each record as an RFC 5424 syslog message. The header carries the priority, the time, the node's host name, the application name waap and the stream (security or audit). The body is in the format that the destination sets. For how to add a destination, see SIEM export.

FormatBodyFields carried
jsonOne JSON object with type set to security or audit.A security event with all event fields except trace and capture, which a destination adds with include_capture.
cefCEF:0 header and key-value extensions.The fields in the next table.
leefLEEF:1.0 header and tab-separated attributes.The fields in the next table.

In cef and leef, an empty value is left out. Both formats cut their fields to the 64 KiB message limit as described in SIEM export.

Name mapping for security events ​

Event fieldCEF keyLEEF key
timert (milliseconds since the epoch)devTime (UTC, with devTimeFormat)
actionactaction
client_ipsrcsrc
methodrequestMethodmethod
pathrequesturl
hostdhostdstHost
nodedvchostnode
transaction_idexternalIdtransactionId
applicationcs1 (label application)application
rule IDs of all reasons, comma separatedcs2 (label rules)rules
modecs3 (label mode)mode
countrycs4 (label country)country
first reason's variable and key, joined by :cs5 (label matched)not carried
anomaly_scorecn1 (label anomalyScore), when above 0not carried
first reason's rule_idsignature ID in the headerevent ID in the header
first reason's messagename in the headernot carried
severityheader severity 0 to 10sev
not applicablenot applicablecat is security

Without reasons, the CEF signature ID is request and the name is Request followed by the action. The LEEF event ID is request. Other event fields, such as reasons[].snippet, are in the json format only.

The severity follows the action: block is 7, log and would_block are 5, everything else is 3. The syslog severity is warning for block, notice for log or would_block, and informational otherwise.

Name mapping for audit records ​

Audit fieldCEF keyLEEF key
timertdevTime
actorsuserusrName
actionactaction
resultoutcomeresult
detailmsgdetail
seqexternalIdsequence
targetcs1 (label target)target
rolecs2 (label role)role
sourcecs3 (label source)source
kindcs4 (label kind)not carried

The CEF signature ID of an audit record is audit and its name is the action. The json format carries all audit fields.