Skip to content

Commit

Permalink
config: yaml: Add the Parse setting in Format Tips section (#499)
Browse files Browse the repository at this point in the history
Signed-off-by: Shingo Nakayama <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]>
  • Loading branch information
Shingo-Nakayama and daipom authored May 10, 2024
1 parent 0dc3c5a commit e8cda55
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions configuration/config-file-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,4 +552,21 @@ 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 the parser for the input plugin.

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.

0 comments on commit e8cda55

Please sign in to comment.