Hello Jayakrishnan,
Thank you for sharing your query with us!
if_sid is used as a requisite to trigger any rule only when a rule ID on the list has previously matched. To be more specified, when you configure rule 10012 with if_sid value 10010, rule 10012 will only be checked when requisites of rule ID 10010 is satisfied. In this way, 10012 will work as a child rule of 10010.
Example:
<rule id="100110" level="5">
<if_sid>100100, 100101</if_sid>
<match>Error</match>
<description>There is an error in the log.</description>
</rule>
The rule 100110 is triggered when either of the parent rules (100100, 100101) has matched and the logs contain the word "Error".
However, if you want to trigger a rule when an alert of the defined ID has been triggered in a set number of seconds, you can use
if_matched_sid option with
frequency and
timeframe for that.
I hope it helps. Please let us know if you have any further query here.