我正在尝试使用电子邮件输出插件发送电子邮件,以下是我的输出部分代码。出现以下错误。也尝试过身份验证=>“ login”。
email {
from => "test@mail.com"
to => 'test_new@mail.com'
codec => "plain"
debug => 'true'
via => 'smtp'
authentication => "plain"
address => 'smtp.office365.com'
username => 'test@mail.com'
password => 'password'
subject => 'test'
body => 'test'
port => 587
use_tls => true
}
这是我尝试运行conf文件时遇到的错误。尝试了几件事但对我有用。
[ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Net::SMTPAuthenticationError: 504 5.7.4 Unrecognized authentication type [BM1PR01CA0135.INDPRD01.PROD.OUTLOOK.COM]