* this is based on https://redmine.openinfosecfoundation.org/issues/1
Signed-off-by: jason taylor <jtfas90@gmail.com>
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert:
+ payload: no
+ payload-buffer-size: 4kb
+ payload-printable: no
+ packet: no
+ metadata: no
+ - http:
--- /dev/null
+alert tcp any any -> any any (msg:"AllWorkAndNoPlay"; content:"AllWorkAndNoPlayMakesWill"; content:"DullBoy"; distance:1; within:7; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+
+checks:
+
+ # Check that we have the following events in eve.json
+ # 2 - alert events
+ # 1 - http event
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ count: 1
+ match:
+ event_type: http