Hello Shine
Let’s say that you have a rule 100001, which has level 12 and it is triggering alerts for all agents and you want to get those alerts for all agents except, let’s say, agent name windows1 and windows1. You should create a 100001 child rule, with level 0,
using hostname.
Example:
<rule id="100002" level="0">
<if_sid>100001</if_sid>
<hostname>^windows1$|^windows2$</hostname>
<description>Ignoring Windows1 and Windows2.</description>
</rule>
Hope it helps.
Regards,
Alberto R.
Shine Cardozo | System and Network Administrator![]() CodeMax IT Solutions Pvt. Ltd. |
| Email shine.cardozo@CdMx.in Address A-201/202, 2nd Floor, Asian Costa Pinnacle, Behind Hotel Surya Palace, Fatorda, Margao, Goa (403602) Mobile +91 7385666948 Website CdMx.in |
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/12a6af0a-747c-4a1e-9c59-b8414373afc9n%40googlegroups.com.
Shine Cardozo | System and Network Administrator![]() CodeMax IT Solutions Pvt. Ltd. |
| Email shine.cardozo@CdMx.in Address A-201/202, 2nd Floor, Asian Costa Pinnacle, Behind Hotel Surya Palace, Fatorda, Margao, Goa (403602) Mobile +91 7385666948 Website CdMx.in |
This e-mail may contain privileged and confidential information which is the property of CodeMax IT Solutions Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. CodeMax IT Solutions Pvt. Ltd. does not accept any liability for virus infected e-mails. |
/var/ossec/etc/rules/local_rules.xml file:<group name="web,accesslog,">
<rule id="100002" level="0">
<if_sid>31151</if_sid>
<hostname>AGENT_NAME</hostname>
<description>Silence rule 31151</description>
</rule>
</group>AGENT_NAME with your agent name (not ID) and restart the Wazuh manager.Best regards,To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/CAJ6b3WwV7HbGTsmfYzyNSEq8rw80wYhkR3%3DHa0VPcrwHDBPkcQ%40mail.gmail.com.