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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...