--- /dev/null
+alert http any any -> any any (content:"THIS_IS_A_TEST"; nocase; sid:1;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+args:
+- --set stats.decoder-events=true
+#- --set stats.stream-events=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: fileinfo
+ fileinfo.state: CLOSED
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.status: 200
+ http.length: 14
--- /dev/null
+alert http any any -> any any (content:"THIS_IS_A_TEST"; nocase; sid:1;)
+alert tcp any any -> any any (msg:"SURICATA STREAM Packet with invalid timestamp"; stream-event:pkt_invalid_timestamp; classtype:protocol-command-decode; sid:2210044; rev:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+args:
+- --set stats.decoder-events=true
+#- --set stats.stream-events=true
+
+checks:
+ - filter:
+ count: 3
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2210044
+ pcap_cnt: 2
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2210044
+ pcap_cnt: 3
+ - filter:
+ count: 1
+ match:
+ event_type: fileinfo
+ fileinfo.state: CLOSED
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.status: 200
+ http.length: 14
--- /dev/null
+alert http any any -> any any (content:"THIS_IS_A_TEST"; nocase; sid:1;)
+alert tcp any any -> any any (msg:"SURICATA STREAM Packet with invalid timestamp"; stream-event:pkt_invalid_timestamp; classtype:protocol-command-decode; sid:2210044; rev:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+args:
+- --set stats.decoder-events=true
+#- --set stats.stream-events=true
+
+checks:
+ - filter:
+ count: 3
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2210044
+ pcap_cnt: 2
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2210044
+ pcap_cnt: 3
+ - filter:
+ count: 1
+ match:
+ event_type: fileinfo
+ fileinfo.state: CLOSED
+ - filter:
+ count: 1
+ match:
+ event_type: http
+ http.status: 200
+ http.length: 14