Splunk Search

Mstats and timechart spl for metric by host

nathanluke86
Communicator

I was looking to graph out all of our ‘free space’ on a single timechart but am struggling with the syntax. Each line should represent the free space remaining on each host.
The Mstats command is new to me

| mstats avg(_value) WHERE index=windows_os_metrics AND metric_name="% Free Space" span=30m by host
| timechart span=30m avg(avg_value) by host

We have the data in the metrics index but we cannot get the spl to graph.

Tags (1)
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 ...