如何将Slack集成添加到弹性云的密钥库中

问题描述 投票:0回答:1

我正在尝试通过添加松弛的Webhooks向我的Elasticsearch实例添加松弛的集成。我知道在7.0版之前,我可以放入我的elasticsearch.yml文件:

xpack.notification.slack:
   account:
     monitoring:
       url: https://hooks.slack.com/services/T0A6BLEEA/B0A6D1PRD/XYZ123

但是,现在我必须使用此“安全密钥库”,语法似乎有些复杂。有没有人遇到过类似的事情?

elasticsearch integration slack
1个回答
0
投票

找到了答案,很难找到安全的密钥库。

  1. https://cloud.elastic.co/home中,导航到您的部署
  2. [在左侧,您的部署名称下,单击安全性。3.在这里,您将看到一个面板,上面显示:Elasticsearch Keystore,您可以在其中查看当前的K-V对,并创建新的K-V对。

您可以在其中添加一个松弛的webhook:

Key = xpack.notification.slack.account.<account_name>.secure_url
Values = the webhook URL

希望对下一个问题有帮助的人!

© www.soinside.com 2019 - 2024. All rights reserved.