Skip to main content
This information is for Chronosphere Telemetry Pipeline, which is a standalone product separate from Chronosphere Observability Platform.
The encode JSON processing rule transforms a JSON object into an escaped string. The resulting output includes both the original JSON object and a new string assigned to a key you specify.

Configuration parameters

Use the parameters in this section to configure the . The Telemetry Pipeline web interface uses the items in the Name column to describe these parameters. Pipeline configuration files use the items in the Key column as YAML keys.

Example

Using the encode JSON rule lets you condense a structured object into a single, condensed value. For example, given the following sample website log data:
A processing rule with the Source key value event and the Destination key value stored_string returns the following result:
This rule retained the original event object and created a new key called stored_string to store the same key/value pairs as an embedded string. For a processing rule with the opposite effect, see decode JSON.