elasticsearch Logstash电子邮件输出插件配置错误?
使用以下配置,我将使用logstash将日志发送到我的电子邮件:
elasticsearch Logstash电子邮件输出插件配置错误?,
elasticsearch,logstash,
elasticsearch,Logstash,使用以下配置,我将使用logstash将日志发送到我的电子邮件: output { email { to => "xyz@gmail.com" codec => "plain" contenttype => "text/html; charset=UTF-8" body => "Here is the event line that occured: %{message}" options =&g
output {
email {
to => "xyz@gmail.com"
codec => "plain"
contenttype => "text/html; charset=UTF-8"
body => "Here is the event line that occured: %{message}"
options => {
smpt => {
smtpIporHost => "smtp.gmail.com"
port => 567
userName => "user@gmail.com"
password => "mypass"
starttls => true
}
}
}
}
谢谢您得到的错误非常清楚: 电子邮件的未知设置“选项” 您需要按照以下方式配置您的:
email {
to => "xyz@gmail.com"
codec => "plain"
contenttype => "text/html; charset=UTF-8"
body => "Here is the event line that occured: %{message}"
address => "smtp.gmail.com"
port => 587
username => "xyz@gmail.com"
password => "passw"
use_tls => true
}
原来的问题解决了,现在你又碰到了另一个问题,那就是Gmail不接受你587端口的连接。你能试试smtp-relay.gmail.com吗?对于这个问题,你想让我提出一个新问题吗?好吧,考虑到最初的问题已经解决了,我们不应该把太多的问题塞进一个问题中,我会说是的。