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!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...