u-ichi / fluent-plugin-mail

Fluentd output plugin to send mail
https://rubygems.org/gems/fluent-plugin-mail
Other
48 stars 20 forks source link

How to use Regex keys as message in the email? #41

Closed Amanjain1612 closed 6 years ago

Amanjain1612 commented 6 years ago

I figured it out:

<match email**>
  type mail
  host email-smtp.us-east-1.amazonaws.com
  port 587
  from email_id
  to email_id
  subject QA is down
  user **********
  password *************
  enable_starttls_auto true
  enable_tls false
  message DateTime: %s Error message: %s
  message_out_keys datetime,message
</match>