Hi Wazuh Community, recently reworked our Wazuh and we are rechecking the rules. We would like to add a custom rule for a set of hostnames/IP only how do we go about that?
Here's the custom rule:
<rule id="111001" level="2">
<if_matched_sid>31101</if_matched_sid>
<description>Negate Rule 31101 - Web server 400 errors</description>
</rule>
<rule id="111002" level="2">
<if_matched_sid>31151</if_matched_sid>
<description>Negate Rule 31151 - Multiple web server 400 errors</description>
</rule>
We are getting bombarded with web server 400 codes in the following hostnames <minio3-1,minio3-2,minio3-3>
Logic:
If we get the web server 400 codes > new rule checks if it's gonna trigger 31101 / 31151 >
Two conditions we would like to implement before the new rule triggers so as to not let it spam on our slack channel
add <if_hostname> minio3-1,minio3-2,minio3-3 << is this
and maybe add a match condition? "url": "/thanos/xxxxxxxxxxxxxxxxxxxx/deletion-mark.json" this one? not sure how we can make it work.
This is the logtest