
Hi Joduter,
Hope you are doing well. Thank you for using Wazuh.
Your configuration looks fine to me. You can add a custom rule to tackle this issue. This rule means if 91545 is triggered 2 times in 2 sec, for the second time. it will not trigger rule 101545 instead of 91545. And as 101545 has level 0 it will not create any alert.
<group name="office365,">
<rule id="101545" level="0" frequency="2" timeframe="2">
<if_sid>91545</if_sid>
<description>Ignoring duplicate log-in rule.</description>
</rule>
</group>
Please make sure to add this file in the custom decoder xml file.
Restart the manager after adding the rule to take impact.
systemctl restart wazuh-manager
To learn more about custom rules please check this document:
https://documentation.wazuh.com/current/user-manual/ruleset/custom.html
Also, you can check if duplicate logs are sent to Wazuh server in
cat /var/ossec/logs/alerts/alerts.log | grep "KEYWORDS"
cat /var/ossec/logs/alerts/alerts.json | grep "KEYWORDS"
If you see duplicate alerts for the same log you change the configuration in your log source. So that it does not forward the duplicate log to Wazuh server. Or you can write custom rules to tackle the issue based on your needs.
I hope you find it helpful. Please let me know if you need any further help.
Regards
Md. Nazmur Sakib