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.
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...