Skip to content

Commit 318b773

Browse files
authored
Merge pull request #1605 from n-my/master
2 parents bd4353c + 01201e6 commit 318b773

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
* [Metrics Selector](pipeline/processors/metrics-selector.md)
148148
* [OpenTelemetry Envelope](pipeline/processors/opentelemetry-envelope.md)
149149
* [SQL](pipeline/processors/sql.md)
150+
* [Filters as processors](pipeline/processors/filters.md)
150151
* [Conditional processing](pipeline/processors/conditional-processing.md)
151152
* [Filters](pipeline/filters/README.md)
152153
* [AWS Metadata](pipeline/filters/aws-metadata.md)

pipeline/processors/README.md

+1
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

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

0 commit comments

Comments
 (0)