Hello, you can use the SMS format option, which is more compact:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/email-alerts.html#formatThis is an example where, in the glanular rule, you set the format to be SMS. In this case the filter is that all rules with an alert level greater than 7 will be sent to the general recipient [
sec...@hotmail.com](mailto:
sec...@hotmail.com) and to the specific recipients [
coxol...@bulmp3.com](mailto:
coxol...@bulmp3.com) [
filti...@gufum.com](mailto:
filti...@gufum.com) and will be sent in SMS format only to these last two. The first is sent with the default format which is full_log. The other two will only send the subject and body because they are in SMS format.
```
<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>localhost</smtp_server>
<email_from>
sen...@gmail.com</email_from>
<email_to>
sec...@hotmail.com</email_to>
<email_maxperhour>120</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>7</email_alert_level>
</alerts>
<email_alerts>
<email_to>
coxol...@bulmp3.com</email_to>
<email_to>
filti...@gufum.com</email_to>
<format>sms</format>
<level>7</level>
<do_not_delay/>
</email_alerts>
```