Splunk Search

Fetch fields in json

tsm0099
Explorer

I hava data in statistics.. it has the below format:

 

START Request Id: 62529168377 :$LATEST

{"Name": "abc","Alarm":"alarm from console" , "Trigger":{"Mname":"pqr", "Dimensions":[{"value": "xyz", "name": "efg"},{"value":"hji","value":"lkh"}] } }

 

I have to fetch the values inside the Dimensions.

How can i i achieve this?

 

Thanks in advance.

Labels (4)
0 Karma

renjith_nair
Legend

Have you tried spath ? 

E.g.

|makeresults|eval json="{
   \"Name\": \"abc\",
   \"Alarm\": \"alarm from console\",
   \"Trigger\": {
      \"Mname\": \"pqr\",
      \"Dimensions\": [
         {
            \"value\": \"xyz\",
            \"name\": \"efg\"
         },
         {
            \"value\": [
               \"hji\",
               \"lkh\"
            ]
         }
      ]
   }
}"
|spath input=json

 

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...