我的logstash.version“ =>” 7.5.1“
Logstash config:
email {
to => "to@email"
from => "noreply@fromemail"
subject => "Alert"
body => '%{message}'
port => 25
debug => "true"
address => "emailserverIP"
}
Telnet and EHLO command:
telnet emailserverIP 25
Trying emailserverIP ...
Connected to emailserverIP .
Escape character is '^]'.
EHLO MyHostName
250-REXDB01.domain Hello [MyIP]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOWREQUEST
我遇到以下错误。 [错误] [logstash.outputs.email] [email_alert]传递电子邮件{:exception =>#}
时发生了某些情况还尝试了以下配置
email {
codec => "plain"
to => "to@email"
from => "noreply@fromemail"
subject => "Alert"
body => '%{message}'
port => 25
debug => "true"
address => "emailserverIP"
use_tls => false
authentication => "plain"
username => "noreply@fromemail"
password => "1234567"
}
email {
codec => "plain"
to => "to@email"
from => "noreply@fromemail"
subject => "Alert"
body => '%{message}'
port => 25
debug => "true"
address => "emailserverIP"
use_tls => false
authentication => "login"
username => "noreply@fromemail"
password => "1234567"
}
然后出现以下错误信息 [错误] [logstash.outputs.email] [email_alert]传递电子邮件时发生了某些问题{:exception =>#