doc: Simplified anomaly configuration settings

pull/4193/head
Jeff Lucovsky 7 years ago
parent aaacbf28c2
commit 075592b66f

@ -122,10 +122,10 @@ when anomaly logging is enabled.
Fields Fields
------ ------
* "type": Either "packet", "stream" or "applayer". In rare cases, type will be "unknown". * "type": Either "decode", "stream" or "applayer". In rare cases, type will be "unknown".
When this occurs, an additional field named "code" will be present. Events with type When this occurs, an additional field named "code" will be present. Events with type
"applayer" are detected by the application layer parsers. "applayer" are detected by the application layer parsers.
* "event" The name of the anomalous event. Events of type "packet" are prefixed * "event" The name of the anomalous event. Events of type "decode" are prefixed
with "decoder"; events of type "stream" are prefixed with "stream". with "decoder"; events of type "stream" are prefixed with "stream".
* "code" If "type" is "unknown", than "code" contains the unrecognized event code. Otherwise, * "code" If "type" is "unknown", than "code" contains the unrecognized event code. Otherwise,
this field is not present. this field is not present.
@ -147,20 +147,25 @@ Examples
:: ::
"anomaly": { "anomaly": {
"type": "packet", "type": "decode",
"event": "decoder.icmpv4.unknown_type" "event": "decoder.icmpv4.unknown_type"
} }
"anomaly": { "anomaly": {
"type": "packet", "type": "decode",
"event": "decoder.udp.pkt_too_small" "event": "decoder.udp.pkt_too_small"
} }
"anomaly": { "anomaly": {
"type": "packet", "type": "decode",
"event": "decoder.ipv4.wrong_ip_version" "event": "decoder.ipv4.wrong_ip_version"
} }
"anomaly": {
"type": "stream",
"event": "stream.pkt_invalid_timestamp"
}
{ {
"timestamp": "1969-12-31T16:04:21.000000-0800", "timestamp": "1969-12-31T16:04:21.000000-0800",
"pcap_cnt": 9262, "pcap_cnt": 9262,
@ -175,7 +180,7 @@ Examples
"linktype": 1 "linktype": 1
}, },
"anomaly": { "anomaly": {
"type": "packet", "type": "decode",
"event": "decoder.udp.pkt_too_small" "event": "decoder.udp.pkt_too_small"
} }
} }

@ -86,34 +86,43 @@ Anomalies are event records created when packets with unexpected or anomalous
values are handled. These events include conditions such as incorrect protocol values are handled. These events include conditions such as incorrect protocol
values, incorrect protocol length values, and other conditions which render the values, incorrect protocol length values, and other conditions which render the
packet suspect. Other conditions may occur during the normal progression of a stream; packet suspect. Other conditions may occur during the normal progression of a stream;
these are termed ```stream``` events are include control sequences with incorrect these are termed ``stream`` events are include control sequences with incorrect
values or that occur out of expected sequence. values or that occur out of expected sequence.
Anomalies are reported by and configured by type:
- Decode
- Stream
- Application layer
Metadata:: Metadata::
- anomaly: - anomaly:
# Anomaly log records describe unexpected conditions such as truncated packets, packets with invalid # Anomaly log records describe unexpected conditions such as truncated packets, packets
# IP/UDP/TCP length values, and other events that render the packet invalid for further processing # with invalid IP/UDP/TCP length values, and other events that render the packet
# or describe unexpected behavior on an established stream. Networks which experience high # invalid for further processing or describe unexpected behavior on an established stream.
# occurrences of anomalies may experience packet processing degradation. # Networks which experience high occurrences of anomalies may experience packet processing
# # degradation.
# Choose one or more of the following protocol/parser choices. Note #
# that packethdr requires protodecode to be enabled. # Anomalies are reported for the following:
# # 1. Decode: Values and conditions that are detected while decoding individual packets.
# Enable logging of protocol decode events # This includes invalid or unexpected values for low-level protocol lengths as well
# protodecode: no # as stream related events (TCP 3-way handshake issues, unexpected sequence number, etc).
# # 2. Stream: This includes stream related events (TCP 3-way handshake issues, unexpected
# Enable dumping of packet header; requires protodecode to be enabled # sequence number, etc).
# packethdr: no # enable dumping of packet header # 3. Application layer: These denote application layer specific conditions that are unexpected,
# # invalid or are unexpected given the application monitoring state.
# Enable logging of app-layer protocol parser events #
# protoparser: no # By default, anomaly logging is disabled. When anomaly logging is enabled, application-layer anomaly
# # reporting is enabled.
# Enable logging of app-layer protocol detection events #
# protodetect: no # Choose one or both types of anomaly logging and whether to enable
# # logging of the packet header for packet anomalies.
# Enable logging of parser events types:
# parser: no #decode: no
#stream: no
#applayer: yes
#packethdr: no
HTTP HTTP
~~~~ ~~~~

Loading…
Cancel
Save