Hi every body,
i use mail plugin in logstash but doesn't work.i get this error:
[ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: End of file reached
this my config:
input {
file {
path => "c:/logstash.log"
start_position => "beginning"
sincedb_path => "/dev/null"
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
#negate => true
what => "previous"
}}}
filter {
grok{
match => { "message" => "%{TIME:timestamp} %{LOGLEVEL:LEVEL} %{GREEDYDATA:errormsg}" }
}
}
output {
email {
to => "receiver"
codec => "plain"
contenttype => "text/html; charset=UTF-8"
body => "Here is the event line that occured: %{message}"
address => "smtp.gmail.com"
port => 465
username => "mycompte"
password => "password"
use_tls => true
}
stdout { codec => rubydebug }
}
any help would be greatly appreciate.