Filters as processors

Any Fluent Bit filter can be used as a processor.

Grep example

In this example, the Grep filter is used as an output processor that sends log records only if they match a specified regular expression.

fluent-bit.yaml
pipeline:
  inputs:
    - name: tail
      path: lines.txt
      parser: json
  outputs:
    - name: stdout
      match: '*'
      processors:
        logs:
          - name: grep
            regex: log aa

Last updated

Was this helpful?