Alerting

Multiple Cron Schedules In One Saved Search

itsomana
Path Finder

Is it possible to have more than one cron schedule in a saved search. I have a save search that starts Monday to Saturday at 7:26am and stops at 18:30 Monday, Thursday and Saturday, however on Friday it stops at 17:30.

Tags (2)

woodcock
Esteemed Legend

Check out my answer in the following link (it is NOT the accepted one) for a way to do this in a single search with a single cron, provided your crons share the same periodicity (timespan between runs):

https://answers.splunk.com/answers/24824/can-i-set-a-blackout-period-for-a-scheduled-search-during-w...

woodcock
Esteemed Legend

You should be able to accept this as the correct answer now.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

No. You would have to create multiple saved searches, and configure them the same other than the schedule. They would have to have different names, and could not be used to populate a dashboard, but I assume you're using this to send out an alert, or run a job.

0 Karma

shawngarrettsgp
Path Finder

I downvoted this post because there is a more elegant answer to do this in one alert still, rather than creating 3 separate alerts.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...