http://elastalert.readthedocs.io/en/latest/running_elastalert.html#tutorial
最近在想,是不是elk里面也有针对日志的关键字一些报警,然后就搜索到了这个项目,从配置上看,可以有关键字设置,先mark下。
# From example_rules/example_frequency.yaml
es_host: elasticsearch.example.com
es_port: 14900
name: Example rule
type: frequency
index: logstash-*
num_events: 50
timeframe:
hours: 4
filter:
- term:
some_field: "some_value"
alert:
- "email"
email:
- "elastalert@example.com"
本文介绍了一个基于ELK堆栈的日志监控解决方案——ElastAlert。通过配置示例展示了如何针对特定关键字设置报警规则,包括定义报警条件、频率及接收方式等。
1万+

被折叠的 条评论
为什么被折叠?



