Hello,
I'm trying to set up email alerts, but I think I'm doing something wrong.
I need to receive emails for both alert levels above 13 and specific rule_id. I'm only receiving emails based on alert levels.
Wazuh 4.5.2
Example from Security Events log:
- rule.id 60110
- rule.level 8
- rule.mail false
This one works fine:
- rule.id 23506
- rule.level 13
- rule.mail true
Config:
<ossec_config>
<global>
<jsonout_output>yes</jsonout_output>
<alerts_log>yes</alerts_log>
<logall>no</logall>
<logall_json>no</logall_json>
<email_notification>yes</email_notification>
<email_to>
maila...@mailserver.com</email_to>
<smtp_server>
smtp.mailserver.com</smtp_server>
<email_from>
wa...@mailserver.com</email_from>
<email_maxperhour>12</email_maxperhour>
<email_log_source>alerts.log</email_log_source>
<agents_disconnection_time>10m</agents_disconnection_time>
<agents_disconnection_alert_time>0</agents_disconnection_alert_time>
</global>
<email_alerts>
<email_to>
maila...@mailserver.com</email_to>
<rule_id>60115, 60130, 60133, 60110, 60125, 60128</rule_id>
<do_not_delay />
</email_alerts>
<alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level>13</email_alert_level>
</alerts>
What should I do to receive both, alert level above 13 and rule_id 60110 (for example)?