Alerting

What is the Cron Expression To run a schedule search at 2:30,10,30,18:30 in every day?

manikanthkoti
Loves-to-Learn Everything

Hi Everyone,

Please help me to write cron expression to run a schedule search at 2:30,10:30,18:30 in every day.

Thanks in advance.

Labels (2)
0 Karma

efavreau
Motivator

Hi @manikanthkoti!
Here's a link I would send to my coworkers: https://crontab.guru/#30_2,10,18___*
This site, is one of several you could use. I have recommended this one because they said it makes sense. As they click to each number field, the help text changes, and they can learn how to build a cron timeframe on their own. A word of caution, while this site may help with a large amount of crons, it sometimes can't help with the very complex.
The cron expression you are looking for in this instance is: 30 2,10,18 * * * Go to the site to read about why that is the answer, and hopefully it can also help you in the future.
Cheers!

###

If this reply helps you, an upvote would be appreciated.
0 Karma

vnravikumar
Champion

Hi

Try this

30 2,10,18 * * *
0 Karma
Get Updates on the Splunk Community!

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

Getting Started with AIOps: Event Correlation Basics and Alert Storm Detection in ...

Getting Started with AIOps:Event Correlation Basics and Alert Storm Detection in Splunk IT Service ...

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...