Splunk Search

Disk Usage: How to show memory consuming files?

Gabriel
Path Finder

Hello everyone

Is there a way to determine what occupies disk storage?

The following SPL yields a line graph that shows disk utilization per host and each of its drives.

 

 

 

index=winperf_prod sourcetype=*Perfmon* storage_free_percent="*"
| eval storage_used_percent=round(100-storage_free_percent,2)
| eval host_dev=printf("%s:%s\\",host,instance)
| timechart max(storage_used_percent) by host_dev

 

 

 

image.png

 Now I want to determine what the drop in one of the drives cause on February 12. Ideally I get a list of all processes/files/etc. that occupy disk storage.

 

Help is appreciated 😃

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

I think disk usage info isn't enough to answer the question.  You need file-level data (creates, deletes, etc.) from other inputs.  Perhaps you could just run du on the system with the drive in question?

---
If this reply helps you, Karma would be appreciated.

View solution in original post

Gabriel
Path Finder

Thanks for the hint! Tracking the files (by means of du) would then let me understand what makes up disk usage.

richgalloway
SplunkTrust
SplunkTrust

I think disk usage info isn't enough to answer the question.  You need file-level data (creates, deletes, etc.) from other inputs.  Perhaps you could just run du on the system with the drive in question?

---
If this reply helps you, Karma would be appreciated.
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 ...