- 2 minutes to read
Formula - JsonPathKey
Use the JsonPathKey
Formula function with a regular expression to extract matching Log Event Content from any of the following:
Quick example
Let's get you started with the following example (Get all Keys matching the provided regular expression)
Input | Expression | Result |
---|---|---|
|
|
|
Text Data | Context | Unique values |
Example JSON data was copied from the Nodinite Web API Swagger definition.
Features
- Extract matches using a regular expression from Json Content.
How to use
To configure the Formula plugin with the JsonPathKey function:
- Select Formula as the expression type plugin.
- Write down the expression to use in the 'Expression' text area with the named Key to extract
jsonPathKey('$.paths.*', body)
- Content from the Body part of a Log Event
- The result is displayed
Here's an example of the configuration above.
Syntax
The JsonPathKey function has the following syntax:
JsonPathKey(regex('Expression'), Content)
Next Step
How to Add or manage Search Fields
How to Add or manage Log Views
Related
Expression Type Plugins are used in Search Fields
What are Search Fields?
What are Search Field Expressions?
What are Message Types?
What are Log Views?