<?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: Why am I encountering the error &amp;quot;The maximum window size (10000) was reached&amp;quot; when the Splunk query gets too big? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345673#M63504</link>
    <description>&lt;P&gt;You have too many events in the &lt;CODE&gt;time_window=30m&lt;/CODE&gt; timeframe for streamstats to handle (default=10'000). Considering your event count of close to 1 billion I would recommend to go for fixed instead of sliding 30 minute windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="XXX" sourcetype="XXX" NOT IP="xxx.xxx.xxx.xxx" NOT IP="xxx.xxx.xxx.xxx"
 | bin _time span=30m 
 | stats dc(SESSIONID) as COUNT_SESSIONID by IP _time 
 | search COUNT_SESSIONID &amp;gt; 50 
 | table _time IP COUNT_SESSIONID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not exactly what you are looking for, but an approximation, which hopefully is good enough.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 08:08:22 GMT</pubDate>
    <dc:creator>usd0872</dc:creator>
    <dc:date>2018-03-15T08:08:22Z</dc:date>
    <item>
      <title>Why am I encountering the error "The maximum window size (10000) was reached" when the Splunk query gets too big?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345669#M63500</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I want to count how many sessions are alive from a single IP. &lt;/P&gt;

&lt;P&gt;I have a problem with the window size of this splunk query gets to big:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="XXX" sourcetype="XXX" NOT IP="xxx.xxx.xxx.xxx" NOT IP="xxx.xxx.xxx.xxx"
| bin _time span=5m 
| stats values(SESSIONID) as SESSIONID_MINUTE by IP _time 
| sort 0 - _time 
| streamstats time_window=30m dc(SESSIONID_MINUTE) as COUNT_SESSIONID by IP 
| search COUNT_SESSIONID &amp;gt; 50 
| table _time IP COUNT_SESSIONID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk tell me, that "The maximum window size (10000) was reached.".&lt;/P&gt;

&lt;P&gt;What can I do? Is there any way to get the complete output of the SPL Query?&lt;/P&gt;

&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 10:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345669#M63500</guid>
      <dc:creator>barlettal</dc:creator>
      <dc:date>2018-03-12T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering the error "The maximum window size (10000) was reached" when the Splunk query gets too big?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345670#M63501</link>
      <description>&lt;P&gt;I forgot to say that I have 977'887'114 Events in that app / sourcetype.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 11:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345670#M63501</guid>
      <dc:creator>barlettal</dc:creator>
      <dc:date>2018-03-12T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering the error "The maximum window size (10000) was reached" when the Splunk query gets too big?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345671#M63502</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
You can try increasing the admin user's srchDiskQuota from 10000 to 100000. To do this, I created the file /etc/system/local/authorize.conf, and added the stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [role_admin]
  srchDiskQuota = &amp;lt;integer&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be careful about increasing this quota for non-admin users, as this can severely hamper performance.Also refer documents:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Admin/authorizeconf"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Admin/authorizeconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345671#M63502</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-12T13:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering the error "The maximum window size (10000) was reached" when the Splunk query gets too big?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345672#M63503</link>
      <description>&lt;P&gt;The message is not caused by a lack of disk quota, but by the maximum window size used when using the &lt;CODE&gt;time_window&lt;/CODE&gt; option to the &lt;CODE&gt;streamstats&lt;/CODE&gt; command. Increasing srchDiskQuota won't help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 16:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345672#M63503</guid>
      <dc:creator>usd0872</dc:creator>
      <dc:date>2018-03-14T16:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I encountering the error "The maximum window size (10000) was reached" when the Splunk query gets too big?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345673#M63504</link>
      <description>&lt;P&gt;You have too many events in the &lt;CODE&gt;time_window=30m&lt;/CODE&gt; timeframe for streamstats to handle (default=10'000). Considering your event count of close to 1 billion I would recommend to go for fixed instead of sliding 30 minute windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="XXX" sourcetype="XXX" NOT IP="xxx.xxx.xxx.xxx" NOT IP="xxx.xxx.xxx.xxx"
 | bin _time span=30m 
 | stats dc(SESSIONID) as COUNT_SESSIONID by IP _time 
 | search COUNT_SESSIONID &amp;gt; 50 
 | table _time IP COUNT_SESSIONID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not exactly what you are looking for, but an approximation, which hopefully is good enough.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 08:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-encountering-the-error-quot-The-maximum-window-size/m-p/345673#M63504</guid>
      <dc:creator>usd0872</dc:creator>
      <dc:date>2018-03-15T08:08:22Z</dc:date>
    </item>
  </channel>
</rss>

