Splunk Search

Can someone help me chart JSON values?

sarnathkj
Explorer

I have a JSON just like this. I want to chart data of the values inside values key. The keys of the data in the values will be dynamic.

{"Domain":"DotComMobile","Metrics":"regionCode","values":{"NY":563,"FL":270,"NJ":265,"PA":256,"MA":223,"CA":214,"VA":164,"MD":163,"TX":155,"OH":151}}

How would that be achieved?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started.

<base search> | extract kvdelim=":" pairdelim=",}" | timechart latest(values.*) as *
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...