event_type: stats
stats.app_layer.error.exception_policy.drop_flow: 1
stats.app_layer.error.exception_policy.pass_flow: 0
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "app_layer_error"
+ flow.exception_policy[0].policy: "drop_flow"
event_type: stats
stats.app_layer.error.tls.exception_policy.pass_packet: 1
stats.app_layer.error.tls.exception_policy.drop_packet: 0
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "app_layer_error"
+ flow.exception_policy[0].policy: "pass_packet"
event_type: stats
stats.app_layer.error.exception_policy.pass_packet: 1
stats.app_layer.error.exception_policy.drop_packet: 0
+- filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "app_layer_error"
+ flow.exception_policy[0].policy: "pass_packet"
alerts: yes # log alerts that caused drops
flows: all # start or all: 'start' logs only a single drop
- stats
+ - flow
- stats:
enabled: yes
filename: stats.log
match:
event_type: tls
tls.sni: example.com
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ not-has-key: flow.exception_policy[0].target
+ not-has-key: flow.exception_policy[0].policy
count: 1
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
count: 0
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "drop_flow"
count: 0
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
count: 0
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "drop_flow"
count: 0
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "bypass"
count: 1
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
count: 1
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "pass_flow"
count: 0
match:
event_type: http
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "bypass"
event_type: engine
log_level: Warning
engine.module: exception-policy
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
event_type: engine
log_level: Warning
engine.module: exception-policy
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
match:
event_type: stats
stats.tcp.midstream_exception_policy.pass_flow: 9
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "pass_flow"
match:
event_type: stats
stats.tcp.midstream_exception_policy.drop_flow: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: stream_midstream
+ flow.exception_policy[0].policy: drop_flow
match:
event_type: http
dest_port: 80
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
match:
event_type: stats
stats.tcp.midstream_exception_policy.pass_flow: 2
+- filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "pass_flow"
match:
event_type: stats
stats.tcp.midstream_exception_policy.bypass: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "bypass"
match:
event_type: stats
stats.tcp.midstream_exception_policy.drop_flow: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "drop_flow"
count: 0
match:
event_type: smb
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "bypass"
match:
event_type: flow
flow.action: drop
-
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "reject"
event_type: stats
stats.flow.memcap_exception_policy.drop_packet: 1
stats.flow.memcap_exception_policy.pass_packet: 0
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_midstream"
+ flow.exception_policy[0].policy: "ignore"
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "drop_flow"
event_type: flow
app_proto: tls
flow.action: pass
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "pass_flow"
+ flow.exception_policy[1].target: "app_layer_error"
+ flow.exception_policy[1].policy: "ignore"
match:
event_type: flow
flow.state: bypassed
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "bypass"
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "drop_flow"
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "drop_packet"
+ flow.exception_policy[1].target: "app_layer_error"
+ flow.exception_policy[1].policy: "ignore"
match:
event_type: stats
stats.tcp.reassembly_exception_policy.pass_packet: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_reassembly_memcap"
+ flow.exception_policy[0].policy: "pass_packet"
+ flow.exception_policy[1].target: "app_layer_error"
+ flow.exception_policy[1].policy: "ignore"
match:
event_type: stats
stats.tcp.ssn_memcap_exception_policy.drop_flow: 1
+ - filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: flow
+ flow.exception_policy[0].target: "stream_memcap"
+ flow.exception_policy[0].policy: "drop_flow"