<?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 Re: scrub command returning 50000 results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364140#M107490</link>
    <description>&lt;P&gt;Hey Chrisw3,&lt;/P&gt;

&lt;P&gt;Unfortunately, I do not believe this is a setting you can change. To test I went changed every value in limits.conf from 50000 to 50100. scrub still came back with only 50,000 results. &lt;/P&gt;

&lt;P&gt;Additionally, I believe this is a constraint of the command itself. Because it is calling a python script on the backend which is using the 1.x SDK which limits transforming searches to 50k results. I believe the 50k limit is a limit of the SDK and is not configurable anywhere.&lt;/P&gt;

&lt;P&gt;Sorry and goodluck! -David&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 03:44:52 GMT</pubDate>
    <dc:creator>David_Naylor</dc:creator>
    <dc:date>2018-04-26T03:44:52Z</dc:date>
    <item>
      <title>scrub command returning 50000 results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364139#M107489</link>
      <description>&lt;P&gt;Looking for confirmation that I've found the right setting.&lt;/P&gt;

&lt;P&gt;When i run:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;query&lt;BR /&gt;
| stats count&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I see 400,000 events.&lt;/P&gt;

&lt;P&gt;When I run&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;query&lt;BR /&gt;
| scrub&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;It only returns 50,000.&lt;/P&gt;

&lt;P&gt;Looking through documentation and other posts, it &lt;EM&gt;appears&lt;/EM&gt; that the bottleneck is the &lt;STRONG&gt;maxresultrows&lt;/STRONG&gt; setting in limits.conf but there's nothing that confirms this.  Am I in the right place or is there another setting that I should adjust?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364139#M107489</guid>
      <dc:creator>chrisw3</dc:creator>
      <dc:date>2018-04-25T22:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: scrub command returning 50000 results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364140#M107490</link>
      <description>&lt;P&gt;Hey Chrisw3,&lt;/P&gt;

&lt;P&gt;Unfortunately, I do not believe this is a setting you can change. To test I went changed every value in limits.conf from 50000 to 50100. scrub still came back with only 50,000 results. &lt;/P&gt;

&lt;P&gt;Additionally, I believe this is a constraint of the command itself. Because it is calling a python script on the backend which is using the 1.x SDK which limits transforming searches to 50k results. I believe the 50k limit is a limit of the SDK and is not configurable anywhere.&lt;/P&gt;

&lt;P&gt;Sorry and goodluck! -David&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 03:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364140#M107490</guid>
      <dc:creator>David_Naylor</dc:creator>
      <dc:date>2018-04-26T03:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: scrub command returning 50000 results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364141#M107491</link>
      <description>&lt;P&gt;Do you have anything you can point me to for the limit on the 1.x SDK limit?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364141#M107491</guid>
      <dc:creator>chrisw3</dc:creator>
      <dc:date>2018-04-26T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: scrub command returning 50000 results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364142#M107492</link>
      <description>&lt;P&gt;This "Best of Splunk" .conf 2017 talk on the python sdk v2   lists the 50k limit as a negative of v1&lt;/P&gt;

&lt;P&gt;&lt;A href="http://conf.splunk.com/sessions/2017-sessions.html#search=Extending%20SPL%20with%20Custom%20Search%20Commands%20and%20the%20Splunk%20SDK%20for%20Python&amp;amp;"&gt;http://conf.splunk.com/sessions/2017-sessions.html#search=Extending%20SPL%20with%20Custom%20Search%20Commands%20and%20the%20Splunk%20SDK%20for%20Python&amp;amp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 22:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364142#M107492</guid>
      <dc:creator>David_Naylor</dc:creator>
      <dc:date>2018-04-26T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: scrub command returning 50000 results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364143#M107493</link>
      <description>&lt;P&gt;Sharing the answer I found after working with the Splunk team to dig this out.&lt;/P&gt;

&lt;P&gt;There's no call to the python SDK so that doesn't appear to impact anything.&lt;/P&gt;

&lt;P&gt;Turns out that the answer is &lt;STRONG&gt;maxresultrows&lt;/STRONG&gt; setting in limits.conf.  This limits the search to 50,000.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;However&lt;/EM&gt;, there's a second limitation underneath the commands.conf file that is required as well.  &lt;/P&gt;

&lt;P&gt;commands.conf&lt;BR /&gt;
[scrub]&lt;BR /&gt;
maxinputs = &lt;EM&gt;integer&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;From documentation:&lt;/EM&gt;&lt;BR /&gt;
* Maximum number of events that can be passed to the command for each invocation.&lt;BR /&gt;
* This limit cannot exceed the value of maxresultrows in limits.conf.&lt;BR /&gt;
* 0 for no limit.&lt;BR /&gt;
* Defaults to 50000.&lt;/P&gt;

&lt;P&gt;The smallest of the values of &lt;STRONG&gt;maxresultrows&lt;/STRONG&gt; and &lt;STRONG&gt;maxinputs&lt;/STRONG&gt; will be the value that is returned.&lt;/P&gt;

&lt;P&gt;Hopefully this saves someone a few minutes of clicking.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/scrub-command-returning-50000-results/m-p/364143#M107493</guid>
      <dc:creator>chrisw3</dc:creator>
      <dc:date>2018-05-04T20:28:25Z</dc:date>
    </item>
  </channel>
</rss>

