Hi all,
I am currently using Logstash-email output with the following configuration: (version: 7.3.1)
email {
from => "sender@qq.com"
subject => "Ignore (test run)"
body => "log-message: Ignore (test run)"
to => "receiver@qq.com"
codec => "plain"
contenttype => "text/plain; charset=UTF-8"
address => "smtp.qq.com"
port => "587"
authentication => "plain"
via => "sendmail"
username => "sender@qq.com"
password => "password"
use_tls => true
}
And the log of Logstash will shown as below:
[2022-05-10T03:19:14,397][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2022-05-10T03:19:39,582][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
[2022-05-10T03:19:41,146][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
[2022-05-10T03:19:41,261][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
I also tried set up another output to Elasticsearch, and the data can be transferred to ES successfully, but just email would not work, could you guys help on this? Thanks much!
[2022-05-10T06:39:30,616][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2022-05-10T06:39:38,941][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
[2022-05-10T06:39:39,000][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
[2022-05-10T06:39:40,264][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Errno::EPIPE: Broken pipe - No message available>}
Don't know if the below issue could help for the troubleshooting, just noted it here.
And if I set the attribue "via" to the default value "smtp", then it keep altering another error as below:
[2022-05-10T07:29:07,008][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: end of file reached>}
[2022-05-10T07:29:18,111][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: end of file reached>}
[2022-05-10T07:29:29,216][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: end of file reached>}
[2022-05-10T07:29:40,365][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: end of file reached>}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.