My test instance is nearly completely out of the box from the .deb
packages, the targeted email alerting is the only thing I've changed.
The manager, dashboard, and other components are on a VM set up for
this, and there's only one agent.
The first section of ossec.conf is as below:
====
<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>
<smtp_server>127.0.0.1</smtp_server>
<email_from>[default contact]</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>
<alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level>4</email_alert_level>
</alerts>
<email_alerts>
<level>7</level>
<email_to>[targeted contact A]</email_to>
</email_alerts>
====
Everything else further down is unchanged.
I've had an ongoing run of level 5 events (SSH probes), which seem to be
accumulated until there's a level 7 event that generates an email. In
some cases this has been several hundred level 5 events, with one level
7 buried somewhere in the message.
-kgd
> --
> You received this message because you are subscribed to the Google
> Groups "Wazuh | Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
wazuh+un...@googlegroups.com
> <mailto:
wazuh+un...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/wazuh/4ae203da-b06f-45ac-b69c-d80aab2d81b6n%40googlegroups.com
> <
https://groups.google.com/d/msgid/wazuh/4ae203da-b06f-45ac-b69c-d80aab2d81b6n%40googlegroups.com?utm_medium=email&utm_source=footer>.