Skip to content

Commit

Permalink
filter_sysinfo: add examples for yaml configuration (#1296)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored Feb 19, 2024
1 parent 7c973fa commit d076afc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pipeline/filters/sysinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ In order to start filtering records, you can run the filter from the command lin

The following configuration file is to append fluent-bit version and OS name.

{% tabs %}
{% tab title="fluent-bit.conf" %}
```
[INPUT]
Name dummy
Expand All @@ -37,6 +39,26 @@ The following configuration file is to append fluent-bit version and OS name.
name stdout
match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
pipeline:
inputs:
- name: dummy
tag: test
filters:
- name: sysinfo
match: '*'
Fluentbit_version_key: flb_ver
Os_name_key: os_name
outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% endtabs %}
You can also run the filter from command line.
Expand Down

0 comments on commit d076afc

Please sign in to comment.