All Apps and Add-ons

disk usage, splunk add on unix

sreesh
New Member

Would like to have chart of the total disk space vs used for all mounts at the current time for a host for comparison.

Would like to have trend chart of the total disk space vs used for all mounts for a host for comparison.

Any suggestions?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi
taking the information about disks from the Splunk_TA_nix you have the following informations:

  • Filesystem
  • Type
  • Size
  • Used
  • Avail
  • UsePct
  • MountedOn

that you can use to do all the comparisons you want.
e.g. the time distribution od UsePct in time so you could trace the UsePct data, something like this:

index=os  sourcetype=df
| multikv 
| timechart span=1h max(UsePct) AS perc By host

Ciao.
Giuseppe

0 Karma

sreesh
New Member

fields: size = 15T, mountedon = /stg UsePct =92%, Used=14T, Avail = 1.4T
the requirement is to have

for each mount, Size and Used space side-by-side column chart or any other chart at any given moment and trend, just for visualization.

I am getting it in table part using
| stats latest(Size) as "TotalStorage" by mount,Used | rename Used as UsedStorage

0 Karma

gcusello
SplunkTrust
SplunkTrust

To have a time distribution, try something like this:

 index=os  sourcetype=df host=your_host
 | multikv 
 | bin span=1h _time
 | stats latest(Size) AS "TotalStorage" latest(Used) AS Used latest(UsePct) AS UsePct by Filesystem _time

Ciao.
Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Do you have total and consumed disk space for all mounts available in Splunk?
What have you tried so far?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...