<alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level>4</email_alert_level>
</alerts>
Can we try something .will that work? Please let me know
<alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level> =>4 </email_alert_level>
</alerts>
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/c60c8975-016a-4037-91c3-62f401f4fab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level> 4 </email_alert_level>
</alerts>
<rule id="100005" level="0"><if_level>5</if_level><description>Silenced level-5 rule.</description></rule>
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/cbfcf57e-ac6e-4675-8290-f19c3cc3b6fe%40googlegroups.com.
Thanks,
SR

Thanks,
SR
<rule id="100005" level="0">
<if_level>3</if_level><description>Silenced level-3 rule.</description></rule>
<log_alert_level>4</log_alert_level>
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/50742df0-2d20-401b-b8fc-1ec742326bea%40googlegroups.com.
| <alerts>
<log_alert_level>3</log_alert_level>
<email_alert_level><%= @ossec_email_alert_level %></email_alert_level>
</alerts>
'ossec.conf_header':
order => 00,
content => "<ossec_config>\n";
'ossec.conf_agent':
order => 10,
content => template('wazuh/wazuh_manager.conf.erb');
'ossec.conf_footer':
order => 99,
content => '</ossec_config>';
To overcome this I was thinking to have <log_alert_level> of 3 alerts to silence in local_rules.xml: |
<rule id="100005" level="0"> <if_level>3</if_level> <description>Silenced level-3 rule.</description> </rule> |
So wazuh-manager should not log alert of level 3. So is this server my purpose? Please let me know. I want to automate in puppet. |
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/acd71c05-dccb-4790-bc97-f6d4c44f9d28%40googlegroups.com.
<rule id="503" level="3"><if_sid>500</if_sid><options>alert_by_email</options><match>Agent started</match><description>Ossec agent started.</description><group>pci_dss_10.6.1,pci_dss_10.2.6,gpg13_10.1,</group></rule>
<rule id="503" level="3" overwrite="yes"><if_sid>500</if_sid><options>no_email_alert</options><match>Agent started</match><description>Ossec agent started.</description><group>pci_dss_10.6.1,pci_dss_10.2.6,gpg13_10.1,</group></rule>
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/30f4cda0-b85b-433a-a687-5d3bc3877158%40googlegroups.com.
<email_alerts> <do_not_group/> </email_alerts>
Thanks,
SR
<rule id="503" level="3" overwrite="yes"><if_sid>500</if_sid><options>no_email_alert</options><match>Agent started</match><description>Ossec agent started.</description><group>pci_dss_10.6.1,pci_dss_10.2.6,gpg13_10.1,</group></rule>
<email_alerts><email_to>reci...@example.wazuh.com</email_to><email_to>recip...@example.wazuh.com</email_to><level>12</level><group>sshd,</group><do_not_delay/></email_alerts>
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5d643ccc-1381-42b0-baac-7322a5122af6%40googlegroups.com.
<alerts>
<log_alert_level>4</log_alert_level>
<email_alert_level>12</email_alert_level>
</alerts># /var/ossec/bin/ossec-control restartHi SR,In that case, as you want to suppress the email notification for the rules where alert_by_email is enabled, you must overwrite those rules like the example in my last email:<rule id="503" level="3" overwrite="yes"><if_sid>500</if_sid><options>no_email_alert</options><match>Agent started</match><description>Ossec agent started.</description><group>pci_dss_10.6.1,pci_dss_10.2.6,gpg13_10.1,</group></rule>In addition, the do_not_group affect the granular email setting, means that, it should be set in the same context, for example:
<email_alerts><email_to>recipient@example.wazuh.com</email_to><email_to>recipient2@example.wazuh.com</email_to>
sed -i 's:<log_alert_level>3</log_alert_level>:<log_alert_level>4</log_alert_level>:g' /var/ossec/etc/ossec.conf