2017-06-15 98 views
1

您好我想使用電子郵件plugin.i得到這個錯誤:輸出電子郵件插件logstash

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 } 
} 

任何幫助是極大的讚賞。

回答

2

email插件是不是默認安裝的,所以你必須運行:

bin/logstash-plugin install logstash-output-email 
+0

感謝@fylie,它的工作原理now.but我得到一個其他錯誤象下面這樣:同時提供一個 事情發生電子郵件{:exception =># 「接收器」 地址=> 「localhost」 的編解碼器 => 「普通」 的contentType => 「text/html的;字符集= UTF-8」 經由=> 「SMTP」 端口=> 25 域=> 「本地主機」 從=> 「[email protected]」 受試者=> 「測試」 use_tls =>假 } } – rbaha

+0

不telnet localhost 25'連接? – fylie

+0

沒有不能連接:Connexionàsmtp-server.domain.com ...不可能的情況下,連接端口25:連接端口 – rbaha

相關問題