Splunk AppDynamics

Health Rule Schedule

CommunityUser
Splunk Employee
Splunk Employee

How to setup Health Rule schedule for the below scenario. I need to avoid getting alerts between 8 AM to 2 PM.

Will the below schedule work?

Mon - 12 to 8 AM EST & 2 PM  to 11 PM EST

Monday

Start Time Cron Expression: 0 0 0,14 ? * 2

End Time Cron Expression:   0 0 8,23 ? * 2

Labels (1)
0 Karma
1 Solution

millerep
Contributor

Ahh ok, same logic, just instead of MON-FRI, you'll just have it kick off 2PM MON, and shut off at 8AM MON, so it'll run fine the other days. 

Here's some additional cron expression documentation which may help: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm

View solution in original post

millerep
Contributor

If you're just trying to supress an alert between 8am and 2 pm, then under "manage health rule schedules" when creating the health rule, you'll want a start time at 2pm and an end time at 8am. So it'll look something like this:

0 0 14 ? * MON-FRI

0 0 8 ? * MON-FRI

CommunityUser
Splunk Employee
Splunk Employee

Thanks Eric.

But we need to avoid alerts only on Monday 8 AM to 2 PM. Rest of the weekdays we need to be active on all time.

0 Karma

millerep
Contributor

Ahh ok, same logic, just instead of MON-FRI, you'll just have it kick off 2PM MON, and shut off at 8AM MON, so it'll run fine the other days. 

Here's some additional cron expression documentation which may help: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...