共计 162 个字符,预计需要花费 1 分钟才能阅读完成。
闲话少说,直接上配置示例吧:
1、带正则表达式的,比如排除某个 DEBUG 开头的日志
processors:
- drop_event:
when:
regexp:
message: "^DEBUG:"
2、排除还有某个关键字如 test 的日志
processors:
- drop_event:
when:
contains:
message: "test"
正文完