Alerting

how to find out file systems are using more than 90% space in unix servers?

gsrikanth87
Path Finder

I ran below script, but it is not working.

sourcetype=df | multikv | dedup host,Filesystem | rex field=UsePct "(?\d+)" | where usage>50 | eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!" | fields - *
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Without a better explanation of "it is not working" it's hard to say exactly what is wrong, but I see a couple of problems with your search. Try this version:

sourcetype=df | multikv | dedup host,Filesystem | rex field=UsePct "(?<usage>\d+)" | where usage>50 | eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!" 
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Without a better explanation of "it is not working" it's hard to say exactly what is wrong, but I see a couple of problems with your search. Try this version:

sourcetype=df | multikv | dedup host,Filesystem | rex field=UsePct "(?<usage>\d+)" | where usage>50 | eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!" 
---
If this reply helps you, Karma would be appreciated.

gsrikanth87
Path Finder

Thank you I got it now...

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...