Skip to content

Commit e8cda55

Browse files
config: yaml: Add the Parse setting in Format Tips section (#499)
Signed-off-by: Shingo Nakayama <[email protected]> Co-authored-by: Daijiro Fukuda <[email protected]>
1 parent 0dc3c5a commit e8cda55

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

configuration/config-file-yaml.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,4 +552,21 @@ The backslash `\` is interpreted as an escape character. You need `\` for settin
552552
str_param: "foo\nbar" # \n is interpreted as actual LF character
553553
```
554554

555+
### Parse setting
556+
557+
You can use `parse:` to set up the parser for the input plugin.
558+
559+
Example: in_tail plugin
560+
561+
```yaml
562+
config:
563+
- source:
564+
$type: tail
565+
tag: sample
566+
path: /tmp/test.log
567+
pos_file: /tmp/tail-test.pos
568+
parse:
569+
$type: none
570+
```
571+
555572
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.

0 commit comments

Comments
 (0)