splunk / contentctl

Splunk Content Control Tool
Apache License 2.0
91 stars 25 forks source link

[Feature proposal] Allow for a "should not trigger" test type #326

Open Res260 opened 1 week ago

Res260 commented 1 week ago

Currently, the tests for a detection are tests that PASS if the log is found using the provided detection' search. This is great to test that the rule matches when it's supposed to match, but it cannot test the exclusions to a rule.

Proposal: Introduce the concept of test "types": "should trigger" and "should not trigger".

The behavior is very simple:

I can work on this feature and contribute it to upstream. If this is not something you want, we'll keep it in our private fork.