#[non_exhaustive]pub struct EveOptions {
pub in_iface: String,
pub include_flow: bool,
pub include_anomalies: bool,
pub include_stats: bool,
pub severity_numeric: fn(Severity) -> u8,
pub custom_anomaly_type: &'static str,
}emit-eve and emit only.Expand description
Options for EveJsonWriter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.in_iface: StringInterface name embedded as in_iface. Default empty —
the field is omitted when empty.
include_flow: boolInclude event_type: "flow" records for Ended
(default true).
include_anomalies: boolInclude event_type: "anomaly" for FlowAnomaly +
TrackerAnomaly (default true).
include_stats: boolInclude event_type: "stats" for Tick. Default
false — high cardinality; opt in for verbose pipelines.
severity_numeric: fn(Severity) -> u8Map flowscope’s Severity to the EVE severity field
(numeric 1–4, lower = more severe). Default: identity
mapping — Critical=1, Error=2, Warning=3, Info=4
(Suricata’s convention).
custom_anomaly_type: &'static strEVE anomaly.type value used by
EveJsonWriter::write_owned_anomaly when the
OwnedAnomaly doesn’t carry a flowscope_kind. Default
"applayer" — Suricata’s convention for application-
layer detection events.
Schema-permissive: downstream tooling tolerates any string. Override for downstream detector frameworks that classify on a different axis.