我尝试使用slack配置ES通知。这就是我在elasticsearch.yml中所做的,从elasticsearch网站上的文档中获取它。
xpack.notification.slack:
account: sam@example.com
monitoring:
url: https://hooks.slack.com/services/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
我得到的错误是:
Exception in thread "main" SettingsException[Failed to load settings from /etc/elasticsearch/elasticsearch.yml]; nested: MarkedYAMLException[mapping va$
Oct 27 13:34:56 elasticsearch[8290]: in 'reader', line 99, column 15:
Oct 27 13:34:56 elasticsearch[8290]: monitoring:
Oct 27 13:34:56 elasticsearch[8290]: ^
有谁知道如何解决这个问题?
答案 0 :(得分:2)
尝试:
xpack.notification.slack:
account:
monitoring:
url: https://hooks.slack.com/services/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