gpt4 book ai didi

elasticsearch - Logstash电子邮件输出插件配置错误?

转载 作者:行者123 更新时间:2023-12-03 01:46:03 26 4
gpt4 key购买 nike

使用以下配置,我正在使用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 => {
smpt => {
smtpIporHost => "smtp.gmail.com"
port => 567
userName => "user@gmail.com"
password => "mypass"
starttls => true
}
}
}

}

谢谢

最佳答案

您得到的错误非常清楚:

Unknown setting 'options' for email



您需要像这样配置 email output:
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
}

关于elasticsearch - Logstash电子邮件输出插件配置错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43887685/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com