All Apps and Add-ons

Alert for monitoring file sizes

TigerTim
New Member

I’m new to Splunk and been doing a lot of reading and browsing Splunkbase.
I am needing to create an Alert to run every 30 minutes to monitor the file size of all the log files in a directory (/u01/app/psoft/logs/ERPRD).

These log file names aren’t static as new ones are created when a user runs a query.
If any of the log files are > 500MB, the Alert will fire an email.

Any detailed help or reference links would be appreciated.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You could write a scripted input that calls ls -l on the monitored directory, and filter the result based on the file size listed.

For reference you can take a look at the *NIX app, it contains many scripted inputs that basically call a single command such as ps, df, etc.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...