Hi Leonardo,
For this, you need to check out this
documentation instead for alert management.
The
<email_alert_level> tag sets the minimum severity level for an alert to generate an email notification. The default value is
12. The allowed value is any integer from
1 to
16. This setting overrides
granular email alert configuration.
<email_alerts> is a Granular email option, so it falls below the global email alerts as described above.
If the severity level here is less than the
email_alert_level configured in the
<alerts> section, the email will not be sent.
So if you want to use the granular email option, the level has to be above the
<alerts> configuration option.
I can see that 60122 is level 5, which is why it won't send an alert, because your alerts section includes email_alert_level as 7 or above.
<rule id="60122" level="5">
<if_sid>60105</if_sid>
<field name="win.system.eventID">^529$|^4625$</field>
<description>Logon Failure - Unknown user or bad password</description>
<options>no_full_log</options>
<group>win_authentication_failed,pci_dss_10.2.4,pci_dss_10.2.5,gpg13_7.1,gdpr_IV_35.7.d,gdpr_IV_32.2,hipaa_164.312.b,nist_800_53_AU.14,nist_800_53_AC.7,tsc_CC6.1,tsc_CC6.8,tsc_CC7.2,tsc_CC7.3,</group>
</rule>
You can only configure the granular email alert option, which specifies the rule whose severity level should be above according to this
<email_alert_level>7</email_alert_level> section.
You can test by reducing the <email_alert_level> to 4 and restarting the manager:
systemctl restart wazuh-managerThen simulate the above conditions and check again.
If the issue persists, please share the ossec.log to check further.
cat /var/ossec/logs/ossec.log | grep -i -E "mail|error|warn"Let me know the update on this.