Filters as processors
You can use any filter as a processor in Fluent Bit.
Examples
The following examples show how to configure filters as processors.
Grep
In this example, the Grep filter is used as an input processor to filter log events based on a regular expression pattern:
parsers:
- name: json
format: json
pipeline:
inputs:
- name: tail
path: /var/log/example.log
parser: json
processors:
logs:
- name: grep
regex: log aa
outputs:
- name: stdout
match: '*'Lua
In this example configuration, an input plugin uses the Lua filter as a processor to add a new key hostname with the value monox. Then, an output plugin adds a new key named output with the value new data.
Last updated
Was this helpful?