即使是不成熟的尝试,也胜于胎死腹中的策略。

filebeat收集日志时多条件过滤

Beats | 作者 Atom | 发布于2018年01月25日 | 阅读数:10492

我的一整条日志中包含多个特征值,比如:
2018-01-25 09:12:12
aaa-0123,helloyou
aaa-0908,error
aaa-8980,thank
我想把同时包含aaa-0123和aaa-0908的日志过滤调。
请问这个需要怎么在配置文件中设置呢?
已邀请:

medcl - 今晚打老虎。

赞同来自: Atom

使用 drop_event 来处理,文档:https://www.elastic.co/guide/e ... .html
processors:
- drop_event:
when:
or:
- and:
- contains:
your_filed_name: "aaa-0908"
- contains:
your_filed_name: "aaa-0123"

Atom - beat-logstash-elasticsearch-kabana

赞同来自:

@medcl - Elastic 多谢,多谢大神!

要回复问题请先登录注册