尝试在Kibana中配置电子邮件,文档指出要修改elasticsearch.yml
elasticsearch\config\elasticsearch.yml
在底部添加了以下内容:
xpack.notification.email.account:
account:
smtp:
auth: false
starttls.enable: true
starttls.required: false
host: localhost
port: 25
当我开始服务并执行“测试发送电子邮件”时,我收到发送电子邮件的错误消息 如何配置电子邮件警报。
我要编辑正确的配置文件吗?
答案 0 :(得分:1)
弄清楚了。我能够通过gmail启用电子邮件。
elasticsearch\config\elasticsearch.yml
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
xpack.notification.email.account:
gmail_account:
profile: gmail
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: yourmeail@gmail.com
password: ******* your password