This post is older than a year. Consider some information might not be accurate anymore.
Today I was looking on the upgrade of logstash 1.5.4 to newest version 2.2.0 in the office. There are some configuration breakers. One of them, is in the email output plugin.
The current configuration in logstash 1.5.x allows to use a options hash, with the value of setting the smtp host (smtp-ip-or-host):
email {
to => "user@gmail.com"
codec => "plain"
contenttype => "text/html; charset=UTF-8"
options => {
smtpIporHost => "smtp.gmail.com"
port => 587
userName => "user@gmail.com"
password => "secret"
starttls => true
}
}
Base on this github issue, I was able to trace down the source code in Ruby. In the recent documentation (v2.2) is was hard to find, where smtpIporHost
has moved.
This is the new configuration in v2.2:
email {
to => "user@gmail.com"
codec => "plain"
contenttype => "text/html; charset=UTF-8"
address => "smtp.gmail.com"
port => 587
userName => "user@gmail.com"
password => "secret"
use_tls => true
}
Except for address
and use_tls
the attributes have become its own attributes and moved directly into the email configuration.