Hi Lee,
I would like to add that the Wazuh Integrator provides great flexibility without the need to re-compile.
So you can add an integration to send email alerts tailored to your preference.
Attached
to this message you may find an integration I created some time ago,
but in this case adapted to the subject line you asked for.
At the start you must specify the sender's address and the email server.
The file must be placed in the Wazuh manager with the /var/ossec/integrations/custom-email-alert path and then given the proper ownership and permissions:
chown root:ossec /var/ossec/integrations/custom-email-alerts
chmod 750 /var/ossec/integrations/custom-email-alerts
Then the manager's configuration must include a stanza like this within an <ossec_config> tag:
<integration>
<name>custom-email-alerts</name>
<hook_url>emailre...@example.com</hook_url>
<level>10</level>
<group>windows</group>
<alert_format>json</alert_format>
</integration>
You can adapt the generate_msg function to fit your specific needs.
The script sends email to an email server that does not require authentication, so it could also be adapted to perform authentication by itself or use postfix like the default email configuration for Wazuh currently does.
I hope this helps,
Best Regards,
Juan Carlos Tello