--- /dev/null
+# Test
+
+Check for stream events in the stats, to trigger JSON schema validation.
+
+## Pcap
+
+Reused from bug-3286-02-linux-evasion .
+
+## Redmine ticket
+
+https://redmine.openinfosecfoundation.org/issues/7858
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - stats:
+ enabled: yes
+ filename: stats.log
+ append: yes # append to file (yes) or overwrite it (no)
+ totals: yes # stats for all threads merged together
+ threads: no # per thread stats
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - stats
--- /dev/null
+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
+args:
+- --set stats.decoder-events=true
+- --set stats.stream-events=true
+
+requires:
+ min-version: 9.0
+
+pcap: ../bug-3286-02-linux-evasion/with_evasion_linux.pcap
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: stats
+ stats.stream.pkt_invalid_timestamp: 2