The notation of rule thresholding in Suricata is shown below:
threshold: type <threshold|limit|both>
threshold: type threshold
In the above example the rule generates "1" alarm everytime the event is met "4" times in "360" seconds.
The figure below depicts "type threshold":
threshold:type limit, track by_src, count 4 , seconds 360;
In the above example the rule generates "4" alarms if the event is met first "4" times in "360" seconds. After the detections it doesn't generate any alarms in the rest of the 360 seconds.
Type both alerts once per time interval after seeing M occurrences of the event, then ignores any additional events during the time interval.
threshold:type both, track by_src, count 4 , seconds 360;
In the above example the rule generates "1" alarm if the event is met "4" times in "360" seconds. After the detection it doesn't generate an alarm in the rest of the 360 seconds.
No comments:
Post a Comment