Docs » Create and manage on-call schedules » Schedule examples

Schedule examples 🔗

A virtually limitless number of scheduling options can be configured in Splunk On-Call. Two of the most common scenarios are described in the following sections.

注釈

Only Global and Team Admins have the ability to create and edit schedules.

Scenario 1: Multiple people on-call during business hours 🔗

Multiple people on-call during business hours. One person takes turns doing nights and weekends, One person takes turns doing 24x7 secondary coverage

Main points:

  • Create a rotation called 「Business Hours」 with one Partial Day type shift for each user you would like on-call during Business Hours.

  • Create a rotation called 「Nights and Weekends」 with one Partial Day type shift for the weeknights portion, and one Multi-day type shift for the weekend.

  • Create a rotation called 「Secondary」 with a 24/7 type shift

  • Make three escalation policies that use these rotations with 「Notify the on duty users in rotation」 actions in Step 1. Set Step 2 of the Nights and Weekends and Business Hours escalation policies to execute the Secondary escalation policy

Configure the Business Hours rotation 🔗

  1. Navigate to the team you’d like to implement this schedule for and add all of the appropriate users using the Invite User button.

  2. Navigate to the Rotations tab and select Add Rotation.

  3. Name the rotation 「Business Hours」 and select 「Partial Day」 for the shift type
    1. Name the first shift either after the user who will be occupying it or just call it 「Shift 1」 and set the hours.

    2. Select Save Shift.

    注釈

    Ignore the 「Handoff happens every X week」 and 「The next handoff happens X」 fields because this shift is being created with the intent to not handoff.

    1. Next, add the appropriate user to this shift by selecting Manage Members and then Select a User to add.

    2. After adding the appropriate user, select Add Another Shift.

  4. Select Partial Day and repeat the process from the previous steps. You will end up creating one shift for each user you would like on-call simultaneously during the business day.

  5. When finished, select I’m Done, Save this Rotation.

Configure the Nights and Weekends rotation 🔗

  1. Create the 「Nights and Weekends』 rotation by selecting Add a Rotation.

  2. Name the rotation 「Nights and Weekends」 and select Partial Day for the first shift type.

  3. Name the first shift 「Weeknights」.

    #. In the section with Monday through Friday in blue lettering, deselect Friday. Also, change the hours to cover all week-hours that are not covered by the Business Hours rotation. For example, if your business hours are 8 AM to 5 PM, your Weeknights shift should be 5 PM to 8 AM. If your Business Hours are 9 AM to 4 PM, your Weeknights shift should be 4 PM to 9 AM. #. Change the The next handoff happens date to the next upcoming Monday. #. Select Save Shift. #. To add users to this shift, select Manage Members then Select a User to add. The order that you add the users in will dictate the week they end up on-duty. The first user you add will do the current week, the next user the week after, the third user the third week. You can re-order them after adding by dragging them on the Members page.

  4. After adding the appropriate users, select Add another Shift and select Multi-day for the type.
    1. Name this shift “Weekends” and adjust the hours to those desired.

    2. Select Save Shift.

    3. To add users to this shift, select Manage Members then Select a User to add. The order that you add the users in will dictate the week they end up on-duty. You can re-order these users after adding by dragging them around within this menu.

  5. When finished, select I’m Done, Save this Rotation.

Configure a Secondary rotation 🔗

The next part of the configuration process will involve creating a Secondary rotation to serve as a backup in case either the Business Hours or Nights and Weekends user doesn’t respond in a set amount of time.

  1. Select Add a Rotation.

  2. Name the rotation “Secondary” and select 24/7 for the shift type.

  3. Name the shift “Secondary Shift” and change the handoff time to the appropriate one. This is typically when business hours begin for your organization.

  4. Change the The next handoff happens date to the next upcoming Monday.

  5. Select Save Shift/

  6. To add users to the shift Manage Members then Select a User to add.The order that you add the users in will dictate the week they end up on-duty. The first user you add will do the current week, the next user the week after, the third user the third week. You can re-order these users after adding by dragging them around within this menu.

  7. When finished, select I’m Done, Save this Rotation.

Configure the Escalation Policies 🔗

Next, you will create an escalation policy.

  1. Navigate to Escalation Policies and select Add Escalation Policy.

  2. Name this one 「Secondary」 and set the first step to immediately “Notify the on-duty users in rotation: Secondary”.

  3. Select Save and then refresh your page. This will allow the newly-created escalation policy to be available for selection in other escalation policies.

  4. Navigate to Escalation Policies and select Add Escalation Policy, and call the Policy Name “Business Hours”.

  5. Set the first step to Immediately 「Notify the on-duty users in rotation: Business Hours」.

  6. Select Add Step and set Step 2 to “If still unacked after 15 minutes”, “Execute Policy: Secondary”.

    This will link the Business Hours and Secondary escalation policies together. If the Business Hours users doesn’t respond after 15 minutes, the Secondary user will be paged.

  7. Select Save and then refresh your page.

  8. Select Escalation Policies and then Add Escalation Policy. Name this policy 「Nights and Weekends」.

    The format of this escalation policy is similar to the Business Hours escalation policy, with the Nights and Weekends rotation specified in Step 1 instead of the Business Hours rotation. This links the Nights and Weekends and Secondary escalation policies together so that if the Nights and Weekends on-call user doesn’t respond in 15 minutes, it will escalate to the Seconday user.

  9. Select Save.

Configure Routing Keys 🔗

The final part of this configuration involves assigning routing keys to the Business Hours and Nights and Weekends escalation policies.

  1. Navigate to Settings then Routing Keys.

  2. On the Routing Keys page you can assign an existing routing key to the escalation policies, assign them to the Default Routing Policy, or create a new routing key and assign the escalation policies to it.

  3. To assign the escalation policies to an existing routing key, hover your mouse over the key until a pencil icon shows on the far right, and then select the pencil icon.

  4. Locate the Business Hours and Nights and Weekends escalation policies which are categorized under the team you’ve created them on and select them.

  5. Select the blue checkbox to save your changes.

  6. To assign the escalation policies to the Default Routing Policy, hover your mouse over the row until a pencil icon shows, and then select the escalation policies.

Scenario 2: Only get alerted for certain alerts during business hours 🔗

Main points:

  • Create a Rotation called “Business Hours” with one Partial Day type shift for each user you would like on-call during Business Hours.

  • Specify this Rotation in the first step of an Escalation Policy.

  • Create a Routing Key called “bus-hours-only” and direct it at that Escalation Policy

  • (Optional) Create Rules Engine rules to have this Routing Key applied to the appropriate alerts.

Configure the Business Hours rotation 🔗

Navigate to the team you’d like to implement this schedule for and add all of the appropriate users using the Invite User button. #. Navigate to the Rotations tab and select Add Rotation. #. Name the rotation 「Business Hours」 and select 「Partial Day」 for the shift type.

  1. Name the first shift either after the user who will be occupying it or just call it 「Shift 1」 and set the hours.

  2. Set the shift hours.

  3. Select Save Shift.

注釈

Ignore the 「Handoff happens every X week」 and 「The next handoff happens X」 fields because this shift is being created with the intent to not handoff.

  1. Next, add the appropriate user to this shift by selecting Manage Members and then Select a User to add.

  2. After adding the appropriate user, select Add Another Shift.

  1. Select Partial Day and repeat the process from the previous steps. You will end up creating one shift for each user you would like on-call simultaneously during the business day.

  2. When finished, select I’m Done, Save this Rotation.

Configure the Escalation Policies 🔗

Next, you will create an escalation policy.

  1. Navigate to Escalation Policies and select Add Escalation Policy.

  2. Name this one 「Business Hours Only」 and set the first step to immediately “Notify the on-duty users in rotation: Business Hours」.

  3. Select Save and then refresh your page. This will allow the newly-created escalation policy to be available for selection in other escalation policies.

Configure the Routing Keys 🔗

The next part of this configuration will involve assigning a routing key to the Business Hours Only escalation policy.

  1. Navigate to Settings then Alert Rules Engine.

  2. Select Add Key and name the routing key 「bus-hours-only」.

  3. In the dropdown menu, select the Busines Hours Only escalation policy, located under the team you created it for.

  4. Select the blue checkbox to save your changes.

  5. Once you’ve created this routing key, go into your monitoring tools and assign this routing key to the alerts you only want to page during business hours. Optionally, follow the rules engine steps. You should be able to locate instructions on where to edit the routing key in your specific monitoring tool by finding that tool’s integration guide. If you have any questions, contact victorops-support@splunk.com.

This page was last updated on 2024年04月05日.