Splunk Cloud Platform

Splunk Cloud Platform Admin Manual

Acrobat logo Download manual as PDF


Acrobat logo Download topic as PDF

Workload Management examples

The following scenarios provide some guidance on how to use workload management in Splunk Cloud Platform. These are hypothetical examples only. The exact steps will depend on your specific objectives and requirements.

Scenario 1: Prioritize Security team searches

Use cases:

  • Provide a high priority resource pool for all searches run by the security team.
  • Put all index=* and all time range searches in low priority pool.
  • Abort all real-time searches after 1m.
  • Move all long-running searches (>5m) that are not from the security team or sc_admin into a low priority pool.
  • Abort all long-running searches (>10m) that are not from the security team or sc_admin.

To do this, follow the steps below:

  1. From Splunk Web, go to Settings > Workload Management.
  2. Create the following workload rules by clicking Add Workload Rule.

The order of the rules is important. Rules are evaluated in order from top to bottom. If a search triggers a rule, corresponding action is taken and none of the rules below are evaluated. For example, if Rule #2 were ordered above Rule #1 in the table below, Rule #2 will be triggered after 5 minutes and the search will be moved to alternate pool. On next evaluation, again Rule #2 will be triggered. Rule #1 will never trigger and the search will not be aborted even after 10 minutes.

Order Condition Action
1
NOT (role=security OR role=sc_admin) AND

runtime>10m

Abort
2
NOT (role=security OR role=sc_admin) AND

runtime>5m

Move search to alternate pool: LowPriority
3
search_mode=realtime AND

runtime>1m

Abort
4
index=* OR

search_time_range=alltime

Place search in pool:

LowPriority

5
role=security Place search in pool:

HighPriority

The rules are created and placed in a certain order to achieve the use cases. The rules are evaluated every few seconds and when a new search is started. If a rule is matched, the corresponding action is taken, and rules below that are not evaluated.

Scenario 2: Create a high priority pool for scheduled searches

This scenario represents the following use case:

  • Provide high priority pool for all scheduled searches from users in role=privileged but move these searches to the standard pool if they run for more than 2m.
  • Move all adhoc searches running for more than 5m to low priority pool.
  • Put all index=* and all time range searches in low priority pool.
  • Abort all searches running for more than 15m except searches from the sc_admin.

To do this, follow the steps below:

  1. From Splunk Web, go to Settings > Workload Management.
  2. Create the following workload rules by clicking Add Workload Rule.
Order Condition Action
1 NOT (role=sc_admin) AND

runtime>15m

Abort
2 search_type=adhoc AND

runtime>5m

Move search to alternate pool: LowPriority
3 role=privileged AND

search_type=scheduled AND runtime>2m

Move search to alternate pool: Standard
4 index=* OR

search_time_range=alltime

Place search in pool:

LowPriority

5 role=privileged AND

search_type=scheduled

Place search in pool:

HighPriority

Scenario 3: Create admission rules to prefilter searches

Use cases:

  • Filter out a rogue search acting on all indexes or in the alltime time range.
  • Filter out a rogue search acting on all indexes and in the alltime time range and not from the Enterprise Security app.
  • Filter out an ad hoc search from a role (e.g. role=non_essential) during peak business days.

To do this, follow the steps below:

  1. In Splunk Web, click Settings > Workload Management.
  2. Click the Admission Rule tab.
  3. Create the following admission rules by clicking Add Admission Rule.
Condition Action Schedule
index=* OR search_time_range=alltime Filter search always_on
index=* AND search_time_range=alltime AND NOT app=SplunkEnterpriseSecuritySuite Filter search always_on
search_type=adhoc AND role=non_essential Filter search Every Week On

Monday, Tuesday, Wednesday, Thursday, Friday

For more examples of admission rules, see Example admission rules.

Last modified on 21 September, 2021
PREVIOUS
Manually assign searches to workload pools
 

This documentation applies to the following versions of Splunk Cloud Platform: 8.1.2012, 8.1.2101, 8.1.2103, 8.2.2104, 8.2.2105 (latest FedRAMP release), 8.2.2106, 8.2.2107


Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters