输出电子邮件插件日志



嗨,我想使用电子邮件插件.我收到此错误:

Cannot create pipeline {:reason=>"Couldn't find any output plugin named 'email'

这是 pipeline.conf:

output {
if  "ERROR" in [LEVEL]
{
elasticsearch {
  hosts=>"localhost:9200"
  }
  }
  email {
        options => [ "smtpIporHost", "smtp.gmail.com",
         "port", "587",
         "userName", "user",
         "password", "mypassword",
         "authenticationType", "plain",
         "starttls","true"
           ]
            from => "transmitter"
            subject => "logstash alert"
            to => "receiver"
            via => "smtp"
            body => "Here is the event line that occured: %{message}"
       }
stdout { codec => rubydebug }
}

任何帮助将不胜感激。

默认情况下不安装 email 插件,因此您必须运行:

bin/logstash-plugin install logstash-output-email

最新更新