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!

Index This | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...