I have some Splunk events that include a field named ResponseDetails
. ResponseDetails
is a JSON object that includes a child object with a property named results
. results
is an Array of objects that have a property named description
. An example ResponseDetails
looks like this:
{ {"results":[{"description":"Item was successfully added"}]} }
I'm only interested in the description
. How do I retrieve the value of the description
property of the results
in the ResponseDetails
and put it in a variable named "message"? I tried the following without success:
| spath input=ResponseDetails output=message path=results{}.description
However, message
is an empty string with the approach used above. What am I doing wrong?