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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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