猿问

elasticalert如何一旦match到数据立即发出post的alert?

1.已经配置好了,在debug的时候match也有显示,但是alert就是不发出来,配置文件如下:
rule的配置:
name: ossec_rule
type: any
index: logstash-ossec-*
filter:

  • term:
    type: "ossec"

alert:

  • "post"

http_post_url: "http://.../"

config.yaml的配置:
rules_folder: ossec_rules
run_every:
seconds: 1
buffer_time:
seconds: 1
es_host: 127.0.0.1
es_port: 9200
writeback_index: elastalert_status
alert_time_limit:
days: 1
求解,真的很急,谢谢各位好人



摇曳的蔷薇
浏览 643回答 1
1回答
随时随地看视频慕课网APP
我要回答