Skip to main content

CSV Transform Processor

Overview

The CSV Transform Processor uses CSV-backed lookup and replacement rules to transform telemetry fields. It can read lookup data from a CSV file path or from base64-encoded CSV content and apply the rules to logs, metrics, and traces.

Supported types: Logs · Metrics · Traces

Configuration

General Settings

ParameterTypeDefaultRequiredDescription
csv_file_pathstringnoneNoPath to the CSV file on the collector containing lookup and replacement values.
base64_csv_stringstringnoneNoBase64-encoded CSV content used for lookup and replacement.

Note: Provide either csv_file_path or base64_csv_string as the source for the CSV lookup data.

Transformation Rules

Each item in rules defines one CSV-based transformation rule.

CSV Columns

ParameterTypeDefaultRequiredDescription
match_columnstringnoneYesCSV header name used for matching values.
replace_columnstringnoneYesCSV header name used for replacement values.

Field Mapping

ParameterTypeDefaultRequiredDescription
otel_fieldstringnoneYesOpenTelemetry field to read and match against.
otel_field_to_updatestringnoneNoDestination field to update. If empty, the matched OTel field is updated in place.
match_typestringnoneYesMatching mode used for the CSV column mapping.

Example Configuration

{
"csv": "", // default: none
"base64_csv": "", // default: none
"rules": [
// required
{
"match_column": "", // required, default: none
"replace_column": "", // required, default: none
"otel_field": "", // required, default: none
"otel_field_to_update": "", // default: none
"match_type": "", // required, default: string
},
],
}