This feature is available as an add-on for the Honeycomb Enterprise plan.
Please contact your Honeycomb account team for details.
Description
The Parse Key Value processor is utilized to parse key value pairs from specified fields within log, metric, or trace data. The processor supports specifying the source field and the target field for the parsed key value data, offering flexibility in handling diverse data structures.Use
When dealing with telemetry data that includes key value pairs embedded within logs, metrics, or traces, the Parse Key Value Processor becomes instrumental. For instance, logs from certain applications or systems might contain key value pairs representing specific attributes or metadata. By utilizing the Parse Key Value Processor, these key value pairs can be parsed and converted into structured data, enhancing readability and facilitating more complex queries and analyses.Configuration
Parsing from the “Body” or “Attributes” field into the “Resource” field is not supported.
Example Configurations
Parse Key Value Pairs from Logs
In this example, we are looking to parse key value pairs from a log’s attribute field and store the parsed data in another attribute field. The logs contain key value pairs detailing additional information about log events, and we want to make this data more accessible.
eventDetails attribute and store them as structured data within the log entry. The configuration for the Parse Key Value Processor would be:
- Condition:
"attributes['eventDetails'] != nil" - Source Field Type:
Attribute - Source Field:
eventDetails - Target Field Type:
Attribute - Target Field:
parsedEventDetails - Delimiter:
: - Pair Delimiter:
!