doc: Document reference config setting

Issue: 4974
pull/11792/head
Jeff Lucovsky 6 months ago committed by Victor Julien
parent 9bc468e63a
commit 8064847fc6

@ -89,6 +89,9 @@ Metadata::
# Log the raw rule text. # Log the raw rule text.
#raw: false #raw: false
# Include the rule reference information
#reference: false
Anomaly Anomaly
~~~~~~~ ~~~~~~~

@ -75,6 +75,19 @@ outputs:
# payload-length: yes # enable dumping payload length, including the gaps # payload-length: yes # enable dumping payload length, including the gaps
# packet: yes # enable dumping of packet (without stream segments) # packet: yes # enable dumping of packet (without stream segments)
# metadata: no # enable inclusion of app layer metadata with alert. Default yes # 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: yes # Requires metadata; enable dumping of HTTP body in Base64
# http-body-printable: yes # Requires metadata; enable dumping of HTTP body in printable format # 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 # websocket-payload: yes # Requires metadata; enable dumping of WebSocket Payload in Base64

@ -244,11 +244,11 @@ void AlertJsonHeader(void *ctx, const Packet *p, const PacketAlert *pa, JsonBuil
AlertJsonSourceTarget(p, pa, js, addr); AlertJsonSourceTarget(p, pa, js, addr);
} }
if ((json_output_ctx != NULL) && (flags & LOG_JSON_REFERENCE)) { if ((flags & LOG_JSON_REFERENCE)) {
AlertJsonReference(pa, js); 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); AlertJsonMetadata(json_output_ctx, pa, js);
} }

Loading…
Cancel
Save