JsonPath fields
JsonPath fields extract a field's value from an event using a JsonPath expression.
JsonPath syntax reference:
Syntax
JsonPath fields are enclosed in brackets:
field={a.b.c[0]}
Example
| make
| eval mpl.encoders = list('raw', 'json')
| rename {mpl.encoders[0]} as encoders
{mpl.encoders[0]}is a JsonPath expression which selects the first item ([0]) of the nested fieldencodersin the root fieldmpl.
{
"mpl": {
"encoders": [
"json"
]
},
"encoders": "raw"
}