Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 545 Bytes

filters.md

File metadata and controls

24 lines (20 loc) · 545 Bytes

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.

{% code title="fluent-bit.yaml" %}

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

{% endcode %}