csv
The csv parser plugin parses CSV format.
Parameters
See Parse Section Configurations.
keys
keysarray of string
required parameter
0.14.9
The array of names for fields on each line.
delimiter
delimiterstring
,
0.14.2
The delimiter (character or string) separating CSV values.
parser_type
parser_typeenum
normal
normal/fast
1.7.0
The parser type used to parse the log line.
fastuses its own lightweight implementation. This parser is several timesfaster than
normalbut it supports only typical patterns.
Supported CSV formats by fast:
If your CSV format is not matched with the above patterns, use normal parser instead.
Example
With this configuration:
This incoming event:
is parsed as:
If you set null_value_pattern '-' in the configuration, user field becomes nil instead of "-".
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.
Last updated
Was this helpful?