1. git clone elastalert 和 elastalert-dingtalk-plugin
2. config.yaml 配置如下
5. 结果显示如下图:
6. 为什么hits命中了;但是无法 发送alert呢?
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 --verbose5. 结果显示如下图:
6. 为什么hits命中了;但是无法 发送alert呢?
3 个回复
kindy
赞同来自:
zqc0512 - andy zhou
赞同来自:
kindy
赞同来自: