Logstash Email Alert Body Customization

(Mancharagopan) #1

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.

(system) #2

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