Splunk Search

Sort by DataStore

lvandeyar
New Member

Hello I have some data that I'd like to make a bar graph by each datastore. Can anyone help? Data below.

{"dataStores":[
    {"name":"DataStore1", "usedSpace": 477, "capacity": 2048,"freeSpace": 1571},
    {"name":"DataStore2", "usedSpace": 479, "capacity": 2049,"freeSpace": 1572}
]}
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Once you've indexed your JSON data, generate the graph using this search command:

index=foo name="DataStore*" | chart min(freeSpace) by name
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...