--- /dev/null
+# Threshold.config with by_rule
+
+This test checks threshold.config file using by_rule keyword
+
+The pcap file is from http-all-headers test
--- /dev/null
+alert http any any -> any any (msg:"toto"; sid: 1000001;)
--- /dev/null
+requires:
+ min-version: 7
+
+args:
+- --set threshold-file=${TEST_DIR}/threshold.config
+
+checks:
+ - filter:
+ count: 3
+ match:
+ event_type: alert
+ alert.signature_id: 1000001
--- /dev/null
+threshold gen_id 1, sig_id 1000001, type limit, track by_rule, count 3, seconds 1000