# Filters as processors

You can use any [filter](https://docs.fluentbit.io/manual/4.1/data-pipeline/filters) as a processor in Fluent Bit.

{% hint style="info" %}
Only [YAML configuration files](https://docs.fluentbit.io/manual/4.1/administration/configuring-fluent-bit/yaml) support processors.
{% endhint %}

## Grep example

In this example, the [Grep](https://docs.fluentbit.io/manual/4.1/data-pipeline/filters/grep) filter is an output processor that sends log records only if they match a specified regular expression.

{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
  inputs:
    - name: tail
      path: lines.txt
      parser: json

  outputs:
    - name: stdout
      match: '*'

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

{% endtab %}
{% endtabs %}
