Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pipeline/processors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Additionally, filters can be implemented in a way that mimics the behavior of pr

{% hint style="info" %}

Processors are compatible only with the YAML configuration format. Classic mode configuration files don't support processors.
Only [YAML configuration files](../administration/configuring-fluent-bit/yaml/README.md) support processors.

{% endhint %}

Expand Down
11 changes: 5 additions & 6 deletions pipeline/processors/filters.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Filters as processors

Any Fluent Bit [filter](../filters/README.md) can be used as a processor.
You can use any [filter](../filters/README.md) as a processor in Fluent Bit.

{% hint style="info" %}

**Note:** When used as processors they can be enabled only by using the YAML configuration format. Classic mode
configuration format doesn't support processors.
Only [YAML configuration files](../administration/configuring-fluent-bit/yaml/README.md) support processors.

{% endhint %}

## Grep example

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.
In this example, the [Grep](../filters/grep.md) filter is an output processor that sends log records only if they match a specified regular expression.

{% tabs %}
{% tab title="fluent-bit.yaml" %}
Expand All @@ -25,12 +24,12 @@ pipeline:
outputs:
- name: stdout
match: '*'

processors:
logs:
- name: grep
regex: log aa
```

{% endtab %}
{% endtabs %}
{% endtabs %}