# payload-length: yes # enable dumping payload length, including the gaps
# packet: yes # enable dumping of packet (without stream segments)
# metadata: no # enable inclusion of app layer metadata with alert. Default yes
+ # If you want metadata, use:
+ # metadata:
+ # Include the decoded application layer (ie. http, dns)
+ #app-layer: true
+ # Log the current state of the flow record.
+ #flow: true
+ #rule:
+ # Log the metadata field from the rule in a structured
+ # format.
+ #metadata: true
+ # Log the raw rule text.
+ #raw: false
+ #reference: false # include reference information from the rule
# http-body: yes # Requires metadata; enable dumping of HTTP body in Base64
# http-body-printable: yes # Requires metadata; enable dumping of HTTP body in printable format
# websocket-payload: yes # Requires metadata; enable dumping of WebSocket Payload in Base64
AlertJsonSourceTarget(p, pa, js, addr);
}
- if ((json_output_ctx != NULL) && (flags & LOG_JSON_REFERENCE)) {
+ if ((flags & LOG_JSON_REFERENCE)) {
AlertJsonReference(pa, js);
}
- if ((json_output_ctx != NULL) && (flags & LOG_JSON_RULE_METADATA)) {
+ if (flags & LOG_JSON_RULE_METADATA) {
AlertJsonMetadata(json_output_ctx, pa, js);
}