Reporting

CRON jobs for alerts

AdixitSplunk
Path Finder

Can we set an alert by a cron job for 7:32AM and 9:00AM .
I tried out : 32 7,9 * * 1-5
but its sending at 7:32 and 9:32 AM.
Please suggest .

Tags (2)
0 Karma

rjthibod
Champion

First, why do you include the "1-5" option for day of the month? Are you really trying to limit the search to run on the 1st - 5th of the month?

You cannot do what you ask for in a single cron schedule. You will have to split it up into two separately scheduled items. One for 7:32 and one for 9:00.

32 7 1-5 * *
0 9 1-5 * *

0 Karma

AdixitSplunk
Path Finder

For this we need to create two alerts ,is there a way to do the same with one alert only .

0 Karma

rjthibod
Champion

No, because you can't have two cron schedules under one saved search. You have to create two nearly identical saved searches where the only difference is the Cron schedule and the name/ID.

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

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 ...