<?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 does the custom search command display only 1000 events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438164#M76407</link>
    <description>&lt;P&gt;This is because by default it's limited at 1000 in code.&lt;/P&gt;

&lt;P&gt;You can increase this value in limits.conf:&lt;BR /&gt;
[search]&lt;BR /&gt;
max_events_per_bucket = xxxx&lt;/P&gt;

&lt;P&gt;Please refer to this answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/92979/the-flashtimeline-dashboard-only-shows-first-1000-events.html" target="_blank"&gt;https://answers.splunk.com/answers/92979/the-flashtimeline-dashboard-only-shows-first-1000-events.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:26:54 GMT</pubDate>
    <dc:creator>mchang_splunk</dc:creator>
    <dc:date>2020-09-29T21:26:54Z</dc:date>
    <item>
      <title>Why does the custom search command display only 1000 events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438161#M76404</link>
      <description>&lt;P&gt;The following custom search command (which should return 100,000 displays) returns only 1000 events in Splunk.  The rest of the events seems to be accounted for, but are not displayed; Splunk 6.x and 7.x:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunk.clilib.cli_common as spcli
import splunk.Intersplunk
import sys
import time

keywords, options = splunk.Intersplunk.getKeywordsAndOptions()

def main(args):
  results = []
  row = {}
  for i in range(0,100000):
    record = {}
    record['_time'] = time.time()
    record['_raw'] = "{" + str(i) + "}"
    results.append(record)
  splunk.Intersplunk.outputStreamResults(results)
  exit()
main(sys.argv)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;commands.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
filename = test.py
local = true
overrides_timeorder = true
streaming = true
supports_multivalues = true
generating = stream
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5698iD3FCC728E06B8ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 18:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438161#M76404</guid>
      <dc:creator>jibanes</dc:creator>
      <dc:date>2018-09-02T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the custom search command display only 1000 events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438162#M76405</link>
      <description>&lt;P&gt;look for &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf"&gt;limits.conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Configure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[searchresults]
maxresultrows = 100000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Sep 2018 22:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438162#M76405</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2018-09-02T22:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the custom search command display only 1000 events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438163#M76406</link>
      <description>&lt;P&gt;No that doesn't seem to change the behavior, I added this in limits.conf, then restarted splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk btool limits list | grep -A10 searchresults
[searchresults]
compression_level = 1
max_mem_usage_mb = 200
maxresultrows = 100000
tocsv_maxretry = 5
tocsv_retryperiod_ms = 500
[set]
max_mem_usage_mb = 200
maxresultrows = 50000
[show_source]
distributed = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Same behavior as previously reported though... only 10,000 results visible.&lt;/P&gt;

&lt;P&gt;Note that the same behavior is observed with the default splunk command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| streambag chunks=100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;there are no events passed page #20. Exact same behavior. &lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 22:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438163#M76406</guid>
      <dc:creator>jibanes</dc:creator>
      <dc:date>2018-09-02T22:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the custom search command display only 1000 events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438164#M76407</link>
      <description>&lt;P&gt;This is because by default it's limited at 1000 in code.&lt;/P&gt;

&lt;P&gt;You can increase this value in limits.conf:&lt;BR /&gt;
[search]&lt;BR /&gt;
max_events_per_bucket = xxxx&lt;/P&gt;

&lt;P&gt;Please refer to this answer:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/92979/the-flashtimeline-dashboard-only-shows-first-1000-events.html" target="_blank"&gt;https://answers.splunk.com/answers/92979/the-flashtimeline-dashboard-only-shows-first-1000-events.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-custom-search-command-display-only-1000-events/m-p/438164#M76407</guid>
      <dc:creator>mchang_splunk</dc:creator>
      <dc:date>2020-09-29T21:26:54Z</dc:date>
    </item>
  </channel>
</rss>

