<?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: download specific CSV columns via the web API? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36109#M8012</link>
    <description>&lt;P&gt;ps: is this info in the docs somewhere?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2010 01:11:17 GMT</pubDate>
    <dc:creator>rwgilt</dc:creator>
    <dc:date>2010-08-25T01:11:17Z</dc:date>
    <item>
      <title>download specific CSV columns via the web API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36106#M8009</link>
      <description>&lt;P&gt;What I want to do is pull down the results of a saved search as a CSV file, which will then be loaded into a data warehouse. I would like to automate this on a nightly basis, so I'm experimenting with the web api.&lt;/P&gt;

&lt;P&gt;I've successfully been able to pull down the results of the search I want via the web API, but am running into two issues which I have not found info about in the docs:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;When I browse through the results with the web interface, I get 2600 results. However, I'm only getting about 200 in the csv I'm pulling down. How do I get the rest of the result set?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Can I somehow set up the saved search so I only get the fields I am interested in, rather than the other 100 fields I don't care about?&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 25 Aug 2010 00:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36106#M8009</guid>
      <dc:creator>rwgilt</dc:creator>
      <dc:date>2010-08-25T00:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: download specific CSV columns via the web API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36107#M8010</link>
      <description>&lt;P&gt;I assume that you're using the REST API like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET /services/search/jobs/&amp;lt;sid&amp;gt;/results?output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this is the case, there are two arguments to add, &lt;CODE&gt;field_list&lt;/CODE&gt; and &lt;CODE&gt;count&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;GET /services/search/jobs/&amp;lt;sid&amp;gt;/results?output_mode=csv&amp;amp;field_list=&amp;lt;comma separated field list&amp;gt;&amp;amp;count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to page through the results for efficiency, you can use the &lt;CODE&gt;offset&lt;/CODE&gt; argument in addition to the &lt;CODE&gt;count&lt;/CODE&gt; argument and make several requests.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 00:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36107#M8010</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-25T00:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: download specific CSV columns via the web API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36108#M8011</link>
      <description>&lt;P&gt;This does just what I need - thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 01:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36108#M8011</guid>
      <dc:creator>rwgilt</dc:creator>
      <dc:date>2010-08-25T01:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: download specific CSV columns via the web API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36109#M8012</link>
      <description>&lt;P&gt;ps: is this info in the docs somewhere?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 01:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36109#M8012</guid>
      <dc:creator>rwgilt</dc:creator>
      <dc:date>2010-08-25T01:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: download specific CSV columns via the web API?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36110#M8013</link>
      <description>&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/RESTSearch"&gt;http://www.splunk.com/base/Documentation/latest/Developer/RESTSearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 01:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/download-specific-CSV-columns-via-the-web-API/m-p/36110#M8013</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-25T01:47:18Z</dc:date>
    </item>
  </channel>
</rss>

