Splunk Search

Using Sparklines with mstats

eddieddieddie
Path Finder

How do I draw a Sparkline from data that comes from a metrics index (ie accessed via the mstats command)?

I've tried various combinations of:

| mstats span=5m latest(LogicalDisk.%_Free_Space) as FreePercentSpace WHERE index=metrics_index host=HOSTYMCHOSTFACE instance="*:"
| stats sparkline count by instance

And tried adding "prestats=true" to the end of the mstats command but still nothing happens. I assume there is some sort of intermediate command I need to put between the two lines to make the data palatable for stats (or chart) to process?

Thanks
Eddie

Labels (1)
Get Updates on the Splunk Community!

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!

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 ...