experimental[]
The decode_csv_fields
processor decodes fields containing records in
comma-separated format (CSV). It will output the values as an array of strings.
Note
|
This processor only works with log inputs. |
- decode_csv_fields:
fields:
message: decoded.csv
separator: ","
ignore_missing: false
overwrite_keys: true
trim_leading_space: false
fail_on_error: true
processors.asciidoc :works-with-fields!:
Name | Required | Default | Description |
---|---|---|---|
|
Yes |
A mapping from the source field containing the CSV data to the destination field to which the decoded array will be written. |
|
|
No |
comma character ( |
Character to use as a column separator. To use a TAB character, set this value to "\t". |
|
No |
|
Whether to ignore events that lack the source field. If |
|
No |
|
Whether the target field is overwritten if it already exists. If |
|
No |
|
Whether extra space after the separator is trimmed from values. This works even if the separator is also a space. |
|
No |
|
Whether to fail if an error occurs. If |