Alerting

Splunk Alert.

gpunjabi
New Member

I want to create a Splunk Alert if there no log generated from source file means Cron-Job Not Run.

How would be my search query will look like?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You must first have your cron logs indexed in Splunk. Write a search that looks for a successful run of the cron job. Trigger an alert if the number of results from that search is zero.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You must first have your cron logs indexed in Splunk. Write a search that looks for a successful run of the cron job. Trigger an alert if the number of results from that search is zero.

---
If this reply helps you, Karma would be appreciated.

somesoni2
Revered Legend

+1

For sample search, see answer by @martin_mueller in following post
https://answers.splunk.com/answers/151532/how-to-create-an-alert-if-no-data-is-generated-from-a-host...

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...