Skip to main content
This information is for Chronosphere Telemetry Pipeline, which is a standalone product separate from Chronosphere Observability Platform.
The allow keys processing rule preserves any keys that match a specified regular expression, and then removes all other keys in each record.

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.

Examples

Using the allow keys rule lets you pare down telemetry data by retaining only the data you explicitly choose to keep.

Flat example

For example, given this sample log data:
A processing rule with the Regex value user returns the following result:

Nested example

You can also use the allow keys rule to selectively retain information within a nested object. For example, given this sample log data:
A processing rule with the Regex value vip and the Nested access pattern value user returns the following result:
This rule retained the vip field within the user object and removed all other fields within user. However, because the processing rule’s scope was limited to user, the rule didn’t affect the timestamp, page_id, or action fields. For a processing rule with the opposite effect, see block keys.