From d076afca5befbb179e71bd098555a52dd3c944b2 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Tue, 20 Feb 2024 03:05:08 +0900 Subject: [PATCH] filter_sysinfo: add examples for yaml configuration (#1296) Signed-off-by: Takahiro Yamashita --- pipeline/filters/sysinfo.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pipeline/filters/sysinfo.md b/pipeline/filters/sysinfo.md index 45936ac1b..ce8c2d65b 100644 --- a/pipeline/filters/sysinfo.md +++ b/pipeline/filters/sysinfo.md @@ -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 @@ -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.