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.
Steps:
- From Splunk Web, go to Settings > Workload Management.
- Create the following workload rules by clicking Add Workload Rule.
The order of the workload rules is important. Workload 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:
|
5 |
role=security | Place search in pool:
|
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
Use Cases:
- 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.
Steps:
- From Splunk Web, go to Settings > Workload Management.
- 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:
|
5 | role=privileged AND
search_type=scheduled |
Place search in pool:
|
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.
- Filter out any search acting on the security_events index in the
alltime
time range, except for role=security_users.
Steps:
- In Splunk Web, click Settings > Workload Management.
- Click the Admission Rule tab.
- 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 |
index=security_events AND (NOT role=security_users) AND search_time_range=alltime | Filter search | always_on |
For more examples of admission rules, see Example admission rules.
Manually assign searches to workload pools | Enable automatic UI updates |
This documentation applies to the following versions of Splunk Cloud Platform™: 8.2.2112, 8.2.2201, 8.2.2202, 8.2.2203, 9.0.2205, 9.0.2208, 9.0.2209, 9.0.2303, 9.0.2305, 9.1.2308
Feedback submitted, thanks!