From 4c13683aceb11d53b8f3cda49b940527067c6ff2 Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Tue, 18 Mar 2025 15:26:26 +0100 Subject: [PATCH] Added YAML configuration examples to all classic config sections in the tail input plugin doc page. Signed-off-by: Eric D. Schabell --- pipeline/inputs/tail.md | 65 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/pipeline/inputs/tail.md b/pipeline/inputs/tail.md index 6c985551e..ad38799c7 100644 --- a/pipeline/inputs/tail.md +++ b/pipeline/inputs/tail.md @@ -136,10 +136,10 @@ In your main configuration file, append the following `Input` and `Output` secti {% tabs %} {% tab title="fluent-bit.conf" %} -```python +```text [INPUT] - Name tail - Path /var/log/syslog + Name tail + Path /var/log/syslog [OUTPUT] Name stdout @@ -180,6 +180,9 @@ We need to specify a `Parser_Firstline` parameter that matches the first line of In the case above we can use the following parser, that extracts the Time as `time` and the remaining portion of the multiline as `log` + +{% tabs %} +{% tab title="fluent-bit.conf" %} ```text [PARSER] Name multiline @@ -188,9 +191,24 @@ In the case above we can use the following parser, that extracts the Time as `ti Time_Key time Time_Format %b %d %H:%M:%S ``` +{% endtab %} + +{% tab title="fluent-bit.yaml" %} +```yaml +parsers: + - name: multiline + format: regex + regex: '/(?