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!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...