--- /dev/null
+alert http any any -> any any (flow:established,to_server; http.host; datajson:isset,badhost,type string,load host.lst,key bad_host; ip.src; datajson:isset,bip,type ipv6,load ip.lst,key ip; sid:1;)
+alert http any any -> any any (flow:established,to_server; http.host; datajson:isset,badhost,type string,load host.lst,key bad_host; ip.src; datajson:isset,bip2,type ipv6,load ip2.lst,key ip; sid:2;)
--- /dev/null
+requires:
+ features:
+ - HAVE_LIBJANSSON
+ files:
+ - src/datasets.c
+
+args:
+ - -k none --set datasets.enabled=yes
+
+checks:
+ - filter:
+ count: 2
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ alert.extra.ip: 42
+ alert.extra.bad_host: context
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2
+ alert.extra.ip: 1.2
+ alert.extra.bad_host: context