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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...