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!

More Control Over Your Monitoring Costs with Archived Metrics!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...