Splunk Search

Sort by DataStore

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

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, an upvote would be appreciated.
0 Karma