找到问题的解决办法了么?

elastalert钉钉无法告警

Elasticsearch | 作者 kindy | 发布于2019年03月28日 | 阅读数:4928

1. git clone elastalert 和 elastalert-dingtalk-plugin
dir.jpg

2. config.yaml 配置如下
rules_folder: rules
run_every:
minutes: 1
buffer_time:
minutes: 2
es_host: 194.168.22.222
es_port: 9200
writeback_index: elastalert_status
alert_time_limit:
days: 2
3. rules/monitor_error.yaml 配置入下
es_host: 194.168.22.222
es_port: 9200

name: monitor_error
type: blacklist
index: test-*

timeframe:
minutes: 1

compare_key: message

blacklist:
- "error"
- "ERROR"

alert:
- "elastalert_modules.dingtalk_alert.DingTalkAlerter"

dingtalk_webhook: "https://oapi.dingtalk.com/robo ... ot%3B
dingtalk_msgtype: text
4. 运行命令:  python -m elastalert.elastalert --verbose
5. 结果显示如下图:
1553764764014.jpg

6. 为什么hits命中了;但是无法 发送alert呢?
 
已邀请:

kindy

赞同来自:

我测试yaml文件时报错了

1553767668148.jpg

 

zqc0512 - andy zhou

赞同来自:

config.py 29行有错误。看看上下文关系。

kindy

赞同来自:

已解决,谢谢了

要回复问题请先登录注册