[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"]
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!"
}
}
----- 配置如下 -----
input{
kafka {
codec => "json"
topics_pattern => "SAAS-java.*"
bootstrap_servers => "172.17.181.167:9092"
}
}
output {
elasticsearch {
hosts => ["http://127.0.0.1:9200"]
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!"
}
}
3 个回复
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
赞同来自:
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
赞同来自:
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 有异常,原因未知