# Logstash Email Alert Body Customization

**URL:** <https://discuss.elastic.co/t/logstash-email-alert-body-customization/151983>\
**Category:** Logstash\
**Created:** [October 11, 2018, 6:16am UTC](https://discuss.elastic.co/t/logstash-email-alert-body-customization/151983 "2018-10-11T06:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mancharagopan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mancharagopan/32/60266_2.png) [@mancharagopan](https://discuss.elastic.co/u/mancharagopan)\
**Post date:** [October 11, 2018, 6:16am UTC](https://discuss.elastic.co/t/logstash-email-alert-body-customization/151983/1 "2018-10-11T06:16:25Z")

</div>

Does anyone know how to line break in logstash email output body part?  
My current filter is this,

```
if "warning" in [tags] {
      email {
         to => "its@company.com"
         address => "smtp.gmail.com"
         port => "587"
         via => "smtp"
         use_tls => "true"
         username => "it.support@company.com"
         password => ""
         from => "it.support@company.com"
         subject => "critical event spotted by ELK from : %{host}"
         body => "%{message}"
      }

```

I need to add few options in the body part and it should show line by line. Ex. if i add the event\_id in the the it should show in the next line not along with the other message.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 8, 2018, 6:20am UTC](https://discuss.elastic.co/t/logstash-email-alert-body-customization/151983/2 "2018-11-08T06:20:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
