<?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: Are there limits for the outputcsv command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138935#M28548</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;the outputcsv command seems to work, but when I investigate data, I notice that there are not all the events returned in Splunk from the search. The problem is that the search returns all my events, but they are not written in the csv, &lt;/P&gt;

&lt;P&gt;My search is:&lt;/P&gt;

&lt;P&gt;index=wineventlog host=host1 OR host=host2 OR host=host3 OR host=host4 |stats count by host| map maxsearches=100 search="search index=wineventlog sourcetype="WinEventLog:Security" host=$host$|sort - _time| outputtext usexml=false |fields raw| fields - _time, xml| outputcsv $host$.txt"&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2015 08:22:08 GMT</pubDate>
    <dc:creator>francescafilini</dc:creator>
    <dc:date>2015-06-04T08:22:08Z</dc:date>
    <item>
      <title>Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138931#M28544</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;i'm extracting data with the outputcsv command, but in the file there are not all the events returned by the search. I've already modified the  value of maxresultrows in [restapi] stanza, are there any other limits to change?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138931#M28544</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-06-01T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138932#M28545</link>
      <description>&lt;P&gt;In Splunk v5 the row/event limit on export directly from search results in flashtimeline was removed so you probably do not need to use outputcsv any more (unless you like it better).  If you cannot get that to work, this blog describes another method (that I have not tried):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2013/09/15/exporting-large-results-sets-to-csv/"&gt;http://blogs.splunk.com/2013/09/15/exporting-large-results-sets-to-csv/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 16:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138932#M28545</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-01T16:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138933#M28546</link>
      <description>&lt;P&gt;check first if your search to produce all the results you want without the outputcsv command, then you can use  the outputcsv  command to extract the desired result in the file.&lt;/P&gt;

&lt;P&gt;if it no ok show me your searh.&lt;BR /&gt;
thank&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2015 16:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138933#M28546</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-01T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138934#M28547</link>
      <description>&lt;P&gt;That's a very good solution, but I can't undestrand if it works for saved search too...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 08:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138934#M28547</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-06-04T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138935#M28548</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;the outputcsv command seems to work, but when I investigate data, I notice that there are not all the events returned in Splunk from the search. The problem is that the search returns all my events, but they are not written in the csv, &lt;/P&gt;

&lt;P&gt;My search is:&lt;/P&gt;

&lt;P&gt;index=wineventlog host=host1 OR host=host2 OR host=host3 OR host=host4 |stats count by host| map maxsearches=100 search="search index=wineventlog sourcetype="WinEventLog:Security" host=$host$|sort - _time| outputtext usexml=false |fields raw| fields - _time, xml| outputcsv $host$.txt"&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 08:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138935#M28548</guid>
      <dc:creator>francescafilini</dc:creator>
      <dc:date>2015-06-04T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138936#M28549</link>
      <description>&lt;P&gt;I am not sure; I have never tried it.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138936#M28549</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138937#M28550</link>
      <description>&lt;P&gt;hi francescafilini &lt;BR /&gt;
Note that outputcsv command  outputs search results to the specified csv file&lt;/P&gt;

&lt;P&gt;Look at the following  example .&lt;BR /&gt;
It outputs search results to the CSV file 'mysearch.csv'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* |stats count by categoryId | outputcsv mysearch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for more information follow this link &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Outputcsv"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/Outputcsv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In your search code , &lt;BR /&gt;
replace            host=$host$  by host=*&lt;BR /&gt;
and                  $host$.txt by hosttxt&lt;/P&gt;

&lt;P&gt;then re-test it&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138937#M28550</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-04T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Are there limits for the outputcsv command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138938#M28551</link>
      <description>&lt;P&gt;your search is verry good.&lt;BR /&gt;
i see thant you  append ".txt" to filename you can change and appends ".csv" to filename ?&lt;BR /&gt;
try like this to see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog host=* |stats count by host| map maxsearches=100 search="search index=wineventlog sourcetype="WinEventLog:Security" host=$host$|sort - _time |table raw| fields - _time| outputcsv $host$.csv"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Are-there-limits-for-the-outputcsv-command/m-p/138938#M28551</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-04T14:27:07Z</dc:date>
    </item>
  </channel>
</rss>

