悟空,拿我的打狗棒来

logstash output email 日志抛错

Logstash | 作者 wangzenghui | 发布于2017年11月10日 | 阅读数:11152

[2017-11-10T16:18:12,657][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<EOFError: End of file reached>}


----- 配置如下 -----

input{
kafka {
codec => "json"
topics_pattern => "SAAS-java.*"
bootstrap_servers => "172.17.181.167:9092"
}

}

output {
elasticsearch {
hosts => ["http://127.0.0.1:9200&quot;]
index =>"saas-%{type}-%{+YYYY.MM.dd}"
document_type=> "%{type}"
}
email {
port => "465"
address => "smtp.163.com"
username => "xxxx@163.com"
password => "xxx"
authentication => "plain"
from => "xxxx@163.com"
subject => "Warning: you have an error!"
to => "xxxx@yonyou.com"
use_tls => true
via => "smtp"
body => "you hava an error!"
}
}
已邀请:

tensen1534

赞同来自:

我也遇到,同样的问题。报错如下:
[2017-11-30T17:40:59,662][ERROR][logstash.outputs.email   ] Something happen while delivering an email {:exception=>#<Net::SMTPUnknownError: could not get 3xx (452)>}
 

Lianne

赞同来自:

  email {
    to => 'lianne.wang@outlook.com'
    from => 'xxx@xx.com'
    username => "xxx@xx.com"
    password => "xxxx"
    subject => 'Alert - Warning'
    #body => "Alert test %{host} %{source}:\\n\\Content:\\n%{message}"
    body => "%{message}"
    address => 'smtp.qiye.163.com'
    port => 25
    use_tls => false
    authentication => "plain"
  }

logstash报错日志如下所示:
[logstash.outputs.email   ] Something happen while delivering an email {:exception=>#<Net::SMTPAuthenticationError: 420 ERR.LOGIN.DOMAINNOTEXIST

 
有人能解答下吗?

luosm

赞同来自:

email {

        from => "alert@abc.om"

        to => "saii"

        via => "smtp"

        authentication => "plain"

        subject => "zhong wen"

        body => "message"

        address       => "smtp.exmail.qq.com"

        use_tls  => true

        port => 587

        username           => "aleai"

        password           => "kBk"

    }

 587 可以发, 465 有异常,原因未知

要回复问题请先登录注册