Splunk Search

Search query to send alert when a filesystem percentage usage is greater than 90%

Isaias_Garcia
Path Finder

Hi-

I have the logs below in SPlunk. I wanted to create an alert when the UsePct is gretaer than 90%. Please help for the serach query that I will use to this. Thank you

Filesystem MountedOn Size UsePct
/dev/mapper/vg00-root / 9.9G 23%
/dev/sda1 /boot 92M 75%
/dev/mapper/vg00-var /var 4.8G 89%
/dev/mapper/vg00-tmp /tmp 2.0G 92%

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Add this to your existing search then set it up as a scheduled search that sends an email (or other alert) if there are results.

... | replace "*%" with "*" in UsePct | table Filesystem UsePct | where UsePct > 90
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Add this to your existing search then set it up as a scheduled search that sends an email (or other alert) if there are results.

... | replace "*%" with "*" in UsePct | table Filesystem UsePct | where UsePct > 90
---
If this reply helps you, Karma would be appreciated.

Isaias_Garcia
Path Finder

wow just wow!! it works!! thank you so much!

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...