Skip to content

Commit d50dd0e

Browse files
committed
filters as processors
Signed-off-by: Nico Monchy <[email protected]>
1 parent 5a8d299 commit d50dd0e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

pipeline/processors/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Fluent Bit offers the following processors:
1919
- [OpenTelemetry Envelope](opentelemetry-envelope.md): Transform logs into an
2020
OpenTelemetry-compatible format.
2121
- [SQL](sql.md): Use SQL queries to extract log content.
22+
- [Filters](filters.md): Any filter can be used as a processor.
2223

2324
## Features
2425

pipeline/processors/filters.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Filters
2+
3+
Any Fluent Bit [filters](../../filters/README.md) can be used as a processor.
4+
5+
## grep example
6+
7+
In this example the grep filter is used as an output processor to send Log records only if they match a regular expression.
8+
9+
{% tabs %}
10+
{% tab title="fluent-bit.yaml" %}
11+
12+
```yaml
13+
pipeline:
14+
inputs:
15+
- name: tail
16+
path: lines.txt
17+
parser: json
18+
outputs:
19+
- name: stdout
20+
match: '*'
21+
processors:
22+
logs:
23+
- name: grep
24+
regex: log aa
25+
```
26+
27+
{% endtab %}
28+
{% endtabs %}

0 commit comments

Comments
 (0)