AppD Archive

Health Rule Schedule

Leanne_Sprague
New Member

I am trying to create a schedule for a health rule so that is runs from 7am - 11pm Monday - Saturday.  I have no problems with the 7am - 11pm.  But the addition of days is proving to be troublesome.  This is the start 0 0 7 ? * MON-SAT and this is the end 0 0 23 ? * MON-SAT that I tried.  But I am getting a error saying that 0 0 7 ? * MON-SAT is not a parseable cron expression.  But it is based on an example on the Quartz Scheduler page referenced in the AppDynamics documentation.

Any guidance that could be provided would be greatly appreciated.

Tags (1)
0 Karma
1 Solution

Arun_Dasetty
Super Champion

Hi,

Controller evaluates the rule as per physical instance timezone where controller is installed as the config looks fine check if that is the case here , if not please send the screenshots depicting the issue and outout from controller db for query output:

mysql> select * from schedule \G;

Regards,

Arun

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you try the integer representation format of weekdays like below for the cron expressions and see if that suggestions helps:

0 0 7 ? * 2-7

instead 0 0 7 ? * MON-SAT.

Regards,

Arun

0 Karma

Leanne_Sprague
New Member
The change to 0 0 7 ? * 2-7 was accepted by the UI. But now I have another question. When I have a start of 0 0 7 ? * 2-7 and an end of 0 0 23 ? * 2-7, I am still getting emails for the health rule between 11pm and 7am. What start and end values do I need to use for a health rule that I want to check from 7am - 11pm Monday - Saturday?

Thanks

Leanne

0 Karma

Arun_Dasetty
Super Champion

Hi,

Controller evaluates the rule as per physical instance timezone where controller is installed as the config looks fine check if that is the case here , if not please send the screenshots depicting the issue and outout from controller db for query output:

mysql> select * from schedule \G;

Regards,

Arun

0 Karma

Arun_Dasetty
Super Champion

Hi,

Does that suggestion provided helped? it looks the other format is not allowed due to UI level validation

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...