<?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: What is the effect of maxresultrows for [stats] in limits.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150809#M42266</link>
    <description>&lt;P&gt;maxresultrows for stats * does not * restrict the number of rows in the result. However, it determines the number of rows present in the memory. If the result size goes over &amp;gt; the maxres and if our memusage &amp;gt; max_mem_usage then splunk save it to disk. 6.0.5 docs mentioned about it.   &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.5/Admin/Limitsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.5/Admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
    maxresultrows = &lt;INTEGER&gt;&lt;BR /&gt;
    * Maximum number of rows allowed in the process memory. &lt;BR /&gt;
    * When the search process exceeds max_mem_usage_mb and maxresultrows, data is spilled out to the disk&lt;BR /&gt;
    * If not specified, defaults to searchresults::maxresultrows (which is by default 50000).&lt;/INTEGER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:17:06 GMT</pubDate>
    <dc:creator>cwl</dc:creator>
    <dc:date>2020-09-28T18:17:06Z</dc:date>
    <item>
      <title>What is the effect of maxresultrows for [stats] in limits.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150807#M42264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My understanding about the configuration parameter "maxresultrows" for [stats] is for limiting the number of stats result up to 50,000 by default.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;limits.conf.spec&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[stats|sistats]
maxresultrows = &amp;lt;integer&amp;gt;
* Maximum number of result rows to create.
* If not specified, defaults to searchresults::maxresultrows (which is by default 50000).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, when I run a search, "... | stats count by ipaddress", the result actually exceed far more than 50,000.&lt;BR /&gt;
Is this maxresultrows for stats table row count or other purpose?&lt;/P&gt;

&lt;P&gt;I thought I would see some warning or error message with stats results with more than 50,000.&lt;BR /&gt;
e.g. stats count by ipaddress, where unique ipaddresses are more than 50,000.&lt;/P&gt;

&lt;P&gt;Any comment regarding this parameter is appreciated.&lt;BR /&gt;
Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 12:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150807#M42264</guid>
      <dc:creator>melonman</dc:creator>
      <dc:date>2014-02-14T12:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is the effect of maxresultrows for [stats] in limits.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150808#M42265</link>
      <description>&lt;P&gt;That is controlling the timing to swap the partial calculation to the disk. it is not limiting the max number of actual rows to be returned.&lt;/P&gt;

&lt;P&gt;"When the search process exceeds max_mem_usage_mb and maxresultrows, data is spilled out to the disk"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150808#M42265</guid>
      <dc:creator>Splunk_Shinobi</dc:creator>
      <dc:date>2020-09-28T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the effect of maxresultrows for [stats] in limits.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150809#M42266</link>
      <description>&lt;P&gt;maxresultrows for stats * does not * restrict the number of rows in the result. However, it determines the number of rows present in the memory. If the result size goes over &amp;gt; the maxres and if our memusage &amp;gt; max_mem_usage then splunk save it to disk. 6.0.5 docs mentioned about it.   &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.5/Admin/Limitsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.5/Admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
    maxresultrows = &lt;INTEGER&gt;&lt;BR /&gt;
    * Maximum number of rows allowed in the process memory. &lt;BR /&gt;
    * When the search process exceeds max_mem_usage_mb and maxresultrows, data is spilled out to the disk&lt;BR /&gt;
    * If not specified, defaults to searchresults::maxresultrows (which is by default 50000).&lt;/INTEGER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-effect-of-maxresultrows-for-stats-in-limits-conf/m-p/150809#M42266</guid>
      <dc:creator>cwl</dc:creator>
      <dc:date>2020-09-28T18:17:06Z</dc:date>
    </item>
  </channel>
</rss>

