From 972bda1147e9b423efdbcc5c398f0570ff85d483 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 3 Mar 2024 10:37:43 +0900 Subject: [PATCH] in_systemd: add examples for yaml configuration Signed-off-by: Takahiro Yamashita --- pipeline/inputs/systemd.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/pipeline/inputs/systemd.md b/pipeline/inputs/systemd.md index 90c661b4a..b48554d2a 100644 --- a/pipeline/inputs/systemd.md +++ b/pipeline/inputs/systemd.md @@ -40,6 +40,8 @@ $ fluent-bit -i systemd \ In your main configuration file append the following _Input_ & _Output_ sections: +{% tabs %} +{% tab title="fluent-bit.conf" %} ```text [SERVICE] Flush 1 @@ -55,4 +57,22 @@ In your main configuration file append the following _Input_ & _Output_ sections Name stdout Match * ``` - +{% endtab %} + +{% tab title="fluent-bit.yaml" %} +```yaml +service: + flush: 1 + log_level: info + parsers_file: parsers.conf +pipeline: + inputs: + - name: systemd + tag: host.* + systemd_filter: _SYSTEMD_UNIT=docker.service + outputs: + - name: stdout + match: '*' +``` +{% endtab %} +{% endtabs %}