【发布时间】:2015-09-02 19:10:33
【问题描述】:
我使用的是 logstash 1.4.2,当时这个电子邮件警报运行良好。现在我的系统升级到 logstash 1.5.4 并且由于以下旧设置而导致 logstash 失败:
email {
from => "{{Mailfrom}}"
match => [ "ERROR ALERT", "LOGLEVEL,ERROR" ]
subject => "%{matchName}"
to => "{{Rcptto}}"
via => "smtp"
htmlbody => "<h2>%{matchName}</h2><br/><br/><div
align='center'>%{message}</div>"
options => [
"smtpIporHost", "{{smtpIporHost}}",
"port", "{{smtpPort}}",
"domain", "{{mailDomain}}",
"userName", "{{Mailfrom}}",
"password", "{{MailFromPassword}}",
"authenticationType", "plain",
"starttls", "true"
]
}
现在我收到"You are using a deprecated config setting \"match\" set in email. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. If you have any questions about this, please visit the #logstash channel on freenode irc." 的错误
谁能帮帮我,我应该如何根据 1.5.4 中的 ERROR 条件配置它?
提前致谢!
【问题讨论】:
标签: logstash