This is an earlier version of the OpenSearch documentation. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
csv processor parses comma-separated values (CSVs) from the event into columns. The following table describes the options you can use to configure the
|source||No||String||The field in the event that will be parsed. Default value is |
|quote_character||No||String||The character used as a text qualifier for a single column of data. Default value is |
|delimiter||No||String||The character separating each column. Default value is |
|delete_header||No||Boolean||If specified, the event header ( |
|column_names_source_key||No||String||The field in the event that specifies the CSV column names, which will be automatically detected. If there need to be extra column names, the column names are automatically generated according to their index. If |
|column_names||No||List||User-specified names for the CSV columns. Default value is |
The following table describes common Abstract processor metrics.
| ||Counter||Metric representing the ingress of records to a pipeline component.|
| ||Counter||Metric representing the egress of records from a pipeline component.|
| ||Timer||Metric representing the time elapsed during execution of a pipeline component.|
csv processor includes the following custom metrics.
csvInvalidEvents: The number of invalid events. An exception is thrown when an invalid event is parsed. An unclosed quote usually causes this exception.