Skip to main content
Ent+
This feature is available as an add-on for the Honeycomb Enterprise plan. Please contact your Honeycomb account team for details.

Description

The Parse CSV Processor is utilized to parse CSV strings from specified fields within log, metric, or trace data. It’s particularly useful when your telemetry data contains serialized CSV strings, and you need to convert them into a structured format for easier analysis and filtering. The processor supports specifying the source field and the target field for the parsed CSV data, offering flexibility in handling diverse data structures.

Use

When dealing with telemetry data that includes CSV strings embedded within logs, metrics, or traces, the Parse CSV Processor becomes instrumental. For instance, logs from certain applications or systems might contain CSV strings representing specific attributes or metadata. By utilizing the Parse CSV Processor, these CSV strings can be parsed and converted into structured data, enhancing readability and facilitating more complex queries and analyses.

Configuration

Example Configurations

Parse CSV from Logs

In this example, we are looking to parse CSV strings from a log’s body field and store the parsed data into the attributes field. The logs contain CSV strings detailing a web request, and we want to make this data more accessible. Honeycomb Docs - Parse CSV - image 1 Here is a sample log entry:
We want to parse the CSV string from the Body and store it as structured data within the log entry. The configuration for the Parse CSV Processor would be:
  • Condition: true
  • Source Field Type: Body
  • Source Field: Left empty
  • Target Field Type: Attribute
  • Target Field: Left empty
  • Header Field Type: Static String
  • Headers: ip,method,status
  • Delimiter: \t
  • Header Delimiter: ip,method,status
  • Mode: Strict
The resulting log entry after processing would be:
This structured format makes it easier to filter and analyze the log data based on the ip, method and status fields.