gpt4 book ai didi

elasticsearch - ELK堆栈配置警报电子邮件

转载 作者:行者123 更新时间:2023-12-03 00:49:44 24 4
gpt4 key购买 nike

尝试在Kibana中配置电子邮件,文档指出要修改elasticsearch.yml

enter image description here

elasticsearch\config\elasticsearch.yml

在底部添加了以下内容:
xpack.notification.email.account:
account:
smtp:
auth: false
starttls.enable: true
starttls.required: false
host: localhost
port: 25

当我启动服务并执行“测试发送电子邮件”时,我收到发送电子邮件的错误消息
如何配置电子邮件警报。

我在编辑正确的配置文件吗?

最佳答案

弄清楚了。我能够通过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

关于elasticsearch - ELK堆栈配置警报电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55597139/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com