<?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: Export Top X query to CSV with 200,000 lines in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70600#M14364</link>
    <description>&lt;P&gt;yup that works, but my results are not just a listing 206,100 lines long.  They are a listing of the counts of source and dest ip.  so the total lines that are used in the | top src_ip, dest_ip would total 206,100 but the output might only be 25 lines long if only 25 hosts make up those events.&lt;/P&gt;

&lt;P&gt;I am guessing that the export depends on the number of underlying raw events used to make up the table that is exported?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:19:14 GMT</pubDate>
    <dc:creator>EricPartington</dc:creator>
    <dc:date>2020-09-28T09:19:14Z</dc:date>
    <item>
      <title>Export Top X query to CSV with 200,000 lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70598#M14362</link>
      <description>&lt;P&gt;I am using splunk 4.1.X and am looking for some clarification for exporting the results of a query that uses &lt;CODE&gt;| top dest_ip src_ip src_port&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I have read this
&lt;A href="http://blogs.splunk.com/2009/08/07/help-i-cant-export-more-than-10000-events/" rel="nofollow"&gt;http://blogs.splunk.com/2009/08/07/help-i-cant-export-more-than-10000-events/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;method 1 makes sense.&lt;/P&gt;

&lt;P&gt;However if i export my query and set the Max # lines to larger than the resultset of the lines returned (210,000 to cover 206,100 lines) will I export all the results or will they get chopped/truncated?&lt;/P&gt;

&lt;P&gt;The increased max lines seems to work as expected and I get all the results that I think i should get.  Is this the best way to export and will I get all my results?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 23:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70598#M14362</guid>
      <dc:creator>EricPartington</dc:creator>
      <dc:date>2010-10-14T23:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export Top X query to CSV with 200,000 lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70599#M14363</link>
      <description>&lt;P&gt;Not sure what you mean, this should work: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | outputcsv myoutputfile.csv’
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;check how many results you get in splunk (206100), pipe to export to csv, open the file, you should have 206101 lines (one extra for the header)..  &lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2010 07:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70599#M14363</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2010-10-15T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export Top X query to CSV with 200,000 lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70600#M14364</link>
      <description>&lt;P&gt;yup that works, but my results are not just a listing 206,100 lines long.  They are a listing of the counts of source and dest ip.  so the total lines that are used in the | top src_ip, dest_ip would total 206,100 but the output might only be 25 lines long if only 25 hosts make up those events.&lt;/P&gt;

&lt;P&gt;I am guessing that the export depends on the number of underlying raw events used to make up the table that is exported?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Export-Top-X-query-to-CSV-with-200-000-lines/m-p/70600#M14364</guid>
      <dc:creator>EricPartington</dc:creator>
      <dc:date>2020-09-28T09:19:14Z</dc:date>
    </item>
  </channel>
</rss>

