Hi, good day. I used email config and i encounter this Connection refused - connect (2) for "localhost" port 587
output {
elasticsearch {
hosts => ["localhost:9200"]
}
stdout {
codec => rubydebug
}
if "shouldmail" in [tags] {
email {
to => "xxx@teligent.ph"
username => "xxx03"
from => "xxx@gmail.com"
subject => "Alert"
body => "try logstash email"
domain => "smtp.gmail.com"
port => 587
password => "jarpvwyhwxhfkasr"
use_tls => true
via => "smtp"
}
}
}