<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set workload management rules? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647176#M110052</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to set 2 rules in my workload management pool -&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND runtime&amp;gt;1m -&amp;gt; Move search to alternate Pool: limited_perf&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND runtime&amp;gt;10m -&amp;gt; Abort search&lt;/P&gt;
&lt;P&gt;The second condition is not getting picked &amp;amp; I still see many long running searches under the Expensive search dashboard. I thought it is a problem with the way these conditions are defined, so I tried changing it to -&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND (runtime&amp;gt;1m AND runtime&amp;lt;=10m) - But its throwing error&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;P class=""&gt;ERROR: Workload rule "move_longrunning_to_limited_pool" validation failed with error=invalid predicate format 'runtime&amp;lt;=10m'&lt;/P&gt;
&lt;P class=""&gt;Where am I going wrong?&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 16 Jun 2023 14:10:36 GMT</pubDate>
    <dc:creator>saleshai</dc:creator>
    <dc:date>2023-06-16T14:10:36Z</dc:date>
    <item>
      <title>How to set workload management rules?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647176#M110052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm trying to set 2 rules in my workload management pool -&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND runtime&amp;gt;1m -&amp;gt; Move search to alternate Pool: limited_perf&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND runtime&amp;gt;10m -&amp;gt; Abort search&lt;/P&gt;
&lt;P&gt;The second condition is not getting picked &amp;amp; I still see many long running searches under the Expensive search dashboard. I thought it is a problem with the way these conditions are defined, so I tried changing it to -&lt;/P&gt;
&lt;P&gt;search_type=adhoc AND (runtime&amp;gt;1m AND runtime&amp;lt;=10m) - But its throwing error&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;P class=""&gt;ERROR: Workload rule "move_longrunning_to_limited_pool" validation failed with error=invalid predicate format 'runtime&amp;lt;=10m'&lt;/P&gt;
&lt;P class=""&gt;Where am I going wrong?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647176#M110052</guid>
      <dc:creator>saleshai</dc:creator>
      <dc:date>2023-06-16T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set workload management rules?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647362#M110085</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just checking, if you use just runtime&amp;lt;10m instead of runtime&amp;lt;=10, as below, you get the same invalid predicate format error?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search_type=adhoc AND (runtime&amp;gt;1m AND runtime&amp;lt;10m) &lt;/LI-CODE&gt;&lt;P&gt;Also, only the second rule that should abort the search is not working? The first one is working as expected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 18:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647362#M110085</guid>
      <dc:creator>caiosalonso</dc:creator>
      <dc:date>2023-06-16T18:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set workload management rules?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647446#M110106</link>
      <description>&lt;P&gt;Hi, So it did not work even with taking the = sign out.&lt;/P&gt;&lt;P&gt;I figured, the workload rules execute as per sequence. The order of the rules is important. Rules are evaluated in order from top to bottom. When I changed the sequence of both rules, it worked correctly -&lt;/P&gt;&lt;P&gt;Rule 1 - search_type=adhoc AND runtime&amp;gt;10m&lt;/P&gt;&lt;P&gt;Rule 2 - search_type=adhoc AND runtime&amp;gt;1m&lt;/P&gt;&lt;P&gt;(I removed the extra conditions &amp;amp; simplified the query)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 06:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-workload-management-rules/m-p/647446#M110106</guid>
      <dc:creator>saleshai</dc:creator>
      <dc:date>2023-06-19T06:40:56Z</dc:date>
    </item>
  </channel>
</rss>

