From 1cfc02f82975ce6e0e3b7fa24593c49a443d925d Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sat, 3 Feb 2024 10:21:58 +0900 Subject: [PATCH] filter_sysinfo: add examples for yaml configuration 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.