Hi Rahul,
Your configuration appears to be correct, as outlined
here:
To check if log duplication is occurring, you can enable archives.json on the Wazuh Manager.
Update the
ossec.conf file on the Wazuh Manager to allow JSON logging,
and then verify whether the logs are being received more than once.
<ossec_config>
<global>
<jsonout_output>yes</jsonout_output>
<alerts_log>yes</alerts_log>
<logall>no</logall>
<logall_json>yes</logall_json>
.... Truncuated Configuration
</global> After enabling this, please restart the Wazuh Manager, and check
/var/ossec/logs/archives/archives.jsonNote: Please
disable the
archives.json after the verification, as it will store all the logs in json may cause storage-related issues.
Additionally, you can enable debug logging for Wazuh modules by setting w
azuh_modules.debug:2 in /var/ossec/etc/local_internal_options.conf. After enabling this, check
/var/ossec/logs/ossec.log for more detailed information, which may help you to find out the issue.
Also, you are currently using an old version of Wazuh. You can follow the Wazuh upgrade guide
https://documentation.wazuh.com/current/upgrade-guide/index.html to update to the latest version.
Furthermore, you can use a workaround to silence the duplicate alerts. Please refer to the following URL as referenced:
https://groups.google.com/g/wazuh/c/bMGsiDm-UIc References:
https://documentation.wazuh.com/current/user-manual/manager/event-logging.htmlhttps://documentation.wazuh.com/4.3/user-manual/reference/internal-options.htmlHope it helps.