From 2852fb638d4122001b49c602585b2493efc5cb38 Mon Sep 17 00:00:00 2001 From: Shingo Nakayama Date: Thu, 9 May 2024 13:22:43 +0900 Subject: [PATCH 1/2] config: yaml: Add the Parse setting in Format Tips section Signed-off-by: Shingo Nakayama --- configuration/config-file-yaml.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration/config-file-yaml.md b/configuration/config-file-yaml.md index 7ae8d273..731c7fba 100644 --- a/configuration/config-file-yaml.md +++ b/configuration/config-file-yaml.md @@ -552,4 +552,18 @@ The backslash `\` is interpreted as an escape character. You need `\` for settin str_param: "foo\nbar" # \n is interpreted as actual LF character ``` +### Parse setting +You can use `parse:` to set up parse. +Example: in_tail plugin +```yaml +config: + - source: + $type: tail + tag: sample + path: /tmp/test.log + pos_file: /tmp/tail-test.pos + parse: + $type: none +``` + If this article is incorrect or outdated, or omits critical information, please [let us know](https://github.com/fluent/fluentd-docs-gitbook/issues?state=open). [Fluentd](http://www.fluentd.org/) is an open-source project under [Cloud Native Computing Foundation \(CNCF\)](https://cncf.io/). All components are available under the Apache 2 License. From 8a36857eb32a2cc3bcdf50b6a68795e9f3ca3f37 Mon Sep 17 00:00:00 2001 From: Shingo Nakayama Date: Fri, 10 May 2024 14:28:39 +0900 Subject: [PATCH 2/2] Update configuration/config-file-yaml.md Signed-off-by: Shingo Nakayama Co-authored-by: Daijiro Fukuda --- configuration/config-file-yaml.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configuration/config-file-yaml.md b/configuration/config-file-yaml.md index 731c7fba..ad38fe76 100644 --- a/configuration/config-file-yaml.md +++ b/configuration/config-file-yaml.md @@ -553,8 +553,11 @@ str_param: "foo\nbar" # \n is interpreted as actual LF character ``` ### Parse setting -You can use `parse:` to set up parse. + +You can use `parse:` to set up the parser for the input plugin. + Example: in_tail plugin + ```yaml config: - source: