This feature is available as an add-on for the Honeycomb Enterprise plan.
Please contact your Honeycomb account team for details.
Description
The Parse JSON Processor is utilized to parse JSON strings from specified fields within log, metric, or trace data. It’s particularly useful when your telemetry data contains serialized JSON 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 JSON data, offering flexibility in handling diverse data structures.Use
When dealing with telemetry data that includes JSON strings embedded within logs, metrics, or traces, the Parse JSON Processor becomes instrumental. For instance, logs from certain applications or systems might contain JSON strings representing specific attributes or metadata. By utilizing the Parse JSON Processor, these JSON strings can be parsed and converted into structured data, enhancing readability and facilitating more complex queries and analyses.Configuration
Example Configurations
Parse JSON from Logs
In this example, we are looking to parse JSON strings from a log’s attribute field and store the parsed data back into another attribute field. The logs contain JSON strings detailing additional information about log events, and we want to make this data more accessible.
eventDetails attribute and store it as structured data within the log entry. The configuration for the Parse JSON Processor would be:
- Condition:
"attributes['eventDetails'] != nil" - Source Field Type:
Attribute - Source Field:
eventDetails - Target Field Type:
Attribute - Target Field:
parsedEventDetails