Decode CSV fields
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Preview
Preview
Stack
Preview
Preview
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
The decode_csv_fields processor decodes fields containing records in comma-separated format (CSV). It will output the values as an array of strings. This processor is available for Filebeat.
processors:
- decode_csv_fields:
fields:
message: decoded.csv
separator: ","
ignore_missing: false
overwrite_keys: true
trim_leading_space: false
fail_on_error: true
The decode_csv_fields has the following settings:
fields- This is a mapping from the source field containing the CSV data to the destination field to which the decoded array will be written.
separator- (Optional) Character to be used as a column separator. The default is the comma character. For using a TAB character you must set it to "\t".
ignore_missing- (Optional) Whether to ignore events which lack the source field. The default is
false, which will fail processing of an event if a field is missing. overwrite_keys- Whether the target field is overwritten if it already exists. The default is false, which will fail processing of an event when
targetalready exists. trim_leading_space- Whether extra space after the separator is trimmed from values. This works even if the separator is also a space. The default is
false. fail_on_error-
(Optional) If set to true, in case of an error the changes to the event are reverted, and the original event is returned. If set to
false, processing continues also if an error happens. Default istrue.