<?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: Remote and Local CLI search only returns 100 events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26045#M4999</link>
    <description>&lt;P&gt;There seems to be a problem with the "-output csv" parameter. When removed, I get all 10K results but in "rawevents" format. Also used "-output table" and I also get all 10K results. Is there some kind of bug with "-output csv" and it's limiting it to 100 results?&lt;/P&gt;</description>
    <pubDate>Sat, 07 Aug 2010 01:07:55 GMT</pubDate>
    <dc:creator>vcarbona</dc:creator>
    <dc:date>2010-08-07T01:07:55Z</dc:date>
    <item>
      <title>Remote and Local CLI search only returns 100 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26044#M4998</link>
      <description>&lt;P&gt;Here's my CLI search:&lt;/P&gt;

&lt;P&gt;SPLUNK_URI=https://splunk_search_head:8089&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk search '|savedsearch "mysavedsearch"' -maxout 10000 -auth admin:changeme -output csv -wrap 0 &amp;gt; customers_splunk&lt;/P&gt;

&lt;P&gt;When running the above command, I always get 100 results via the CLI both locally and remotely. When I run this locally, I don't add the URI environment variable. Via the Web, I get 300+. Tried the -maxout command even with the value of 0. Any ideas?&lt;/P&gt;

&lt;P&gt;Here's the saved search:&lt;/P&gt;

&lt;P&gt;sourcetype="my_vpn" State="QM_IDLE" | eval customer = if(isnull(customer_dst) and isnotnull(customer_src),customer_src,customer_dst) | eval gam = case(match(gam_dst, "null"),gam_src,match(gam_src, "null"),gam_dst)|dedup customer|fields customer,gam |fields - _*&lt;/P&gt;

&lt;P&gt;However, when I do the following CLI search locally, I do get 10000 results:&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk search "sourcetype=my_vpn" -maxout 10000 -auth admin:changeme -output csv -wrap 0 &amp;gt; customers_splunk&lt;/P&gt;

&lt;P&gt;But when running remotely, I only get 100 results. Is there a special setting I'm missing here?&lt;/P&gt;

&lt;P&gt;Any help is appreciated.
-vc&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2010 10:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26044#M4998</guid>
      <dc:creator>vcarbona</dc:creator>
      <dc:date>2010-08-06T10:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remote and Local CLI search only returns 100 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26045#M4999</link>
      <description>&lt;P&gt;There seems to be a problem with the "-output csv" parameter. When removed, I get all 10K results but in "rawevents" format. Also used "-output table" and I also get all 10K results. Is there some kind of bug with "-output csv" and it's limiting it to 100 results?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2010 01:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26045#M4999</guid>
      <dc:creator>vcarbona</dc:creator>
      <dc:date>2010-08-07T01:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remote and Local CLI search only returns 100 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26046#M5000</link>
      <description>&lt;P&gt;The comment above refers to running searches both locally and remotely.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2010 03:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26046#M5000</guid>
      <dc:creator>vcarbona</dc:creator>
      <dc:date>2010-08-07T03:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remote and Local CLI search only returns 100 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26047#M5001</link>
      <description>&lt;P&gt;Yes, there is a known bug when using &lt;CODE&gt;-output csv&lt;/CODE&gt;. I believe this affects 4.1.4 and earlier (which is the current version).&lt;/P&gt;

&lt;P&gt;Not directly your question, but if you are able to use the &lt;CODE&gt;| outputcsv&lt;/CODE&gt; search command to write your results to a &lt;CODE&gt;$SPLUNK_HOME/var/run/splunk&lt;/CODE&gt; on the local machine and access them from there, that will run &lt;EM&gt;much&lt;/EM&gt; faster than using -output csv on the CLI, locally or remotely, especially if you have more than a few hundred results.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2010 03:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26047#M5001</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-08T03:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remote and Local CLI search only returns 100 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26048#M5002</link>
      <description>&lt;P&gt;A quick workaround in 4.1.x is to add the flag "-count 0" which will allow up to a -maxout of 50000.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2010 01:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remote-and-Local-CLI-search-only-returns-100-events/m-p/26048#M5002</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-09T01:13:57Z</dc:date>
    </item>
  </channel>
</rss>

