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 😃

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.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...