Ad slot: top

SPL

Free Disk Space for each Drive Letter

Description

Submitted by SplunkNinja

The following Splunk query will return results for all hosts reporting in Perfmon data on available disk space per assigned drive letter (NOTE you must make the change to include free diskspace per partition in your inputs.conf file) Query:
4 0
sourcetype="Perfmon:Free Disk Space" counter="Free Megabytes" (instance!="HarddiskVolume*") (instance!=_Total) |eval FreeSpace=(Value/1024)| eval GB=tostring(FreeSpace,"commas") | table host instance GB | sort + host instance | rename instance as "Drive Letter" GB as "GigaBytes Free"
Inputs.conf Modification:
[perfmon://Free Disk Space]
disabled = 0
counters = Free Megabytes;% Free Space
instances = *
interval = 3600

Comments

0 total

Be the first to comment on this SPL.

Leave a comment

You must log in to post a comment.

Ad slot: bottom