fluent-plugin-grep: grep A or B 比

fluent-plugin-grep: grep A or B than

我们正在使用 fluent-plugin-grep: 这是我的过滤器的样子

<filter **>
  @type grep
  regexp1 level ERROR
</filter>

当我想在 ERROR 或 FATAL 级别进行过滤时,如何更改此过滤器? (所以不仅是错误)?

您可以在正则表达式中使用 OR 模式。 尝试以下配置。

<filter test.**>
  @type grep
  regexp1 level (ERROR|FATAL)
</filter>