Any Fluent Bit filter can be used as a processor.
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 %}