Getting Data In

monitoring file

nvashish123
Engager

Hi,

I was just wondering if Splunk can be sceheduled to monitor a file regularly, and send out alerts if this file does not get updated for a specific time period , lets say for 5 minutes. Please help me in doing so, if possible.

Thanks, Nitin.

Tags (1)

dwaddle
SplunkTrust
SplunkTrust

Yes, sort-of. I am assuming this file is a logfile, and there are timestamped events in it. If Splunk is indexing this log file you could schedule a saved search with a conditional alert in Splunk that does something like:

source=/path/to/my/log/file host=host.my.logfile.is.on earliest=-5m@m 

And only fires the alert if the results returned are <= 0.

http://www.splunk.com/base/Documentation/latest/Admin/Setupalertsinsavedsearches.conf

Brian_Osburn
Builder

I do that now for several of my log files...

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...