filebeat采集日志时如何排除不想看到的日志
1、带正则表达式的,比如排除某个DEBUG开头的日志
processors:
- drop_event:
when:
regexp:
message: "^DEBUG:"
2、排除还有某个关键字如test的日志
processors:
- drop_event:
when:
contains:
message: "test"
processors:
- drop_event:
when:
regexp:
message: "^DEBUG:"
2、排除还有某个关键字如test的日志
processors:
- drop_event:
when:
contains:
message: "test"
0 评论 在 “filebeat采集日志时如何排除不想看到的日志”