<?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: How to connect to a splunk server and get the exported CSV in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-connect-to-a-splunk-server-and-get-the-exported-CSV/m-p/96544#M20130</link>
    <description>&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;easy way : use the web interface and use the "export result"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;hard way : use the API to get the results in xml &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;and finally your method using the remote CLI, piping the result to a file in the correct format&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/CLIsearchsyntax"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/CLIsearchsyntax&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
splunk search "mysearch | table field1 field2 " -output csv -uri  &lt;A href="https://splunk.website.cc" target="test_blank"&gt;https://splunk.website.cc&lt;/A&gt; -auth user, pass &amp;gt; myresult.csv&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Oct 2012 15:11:44 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-10-21T15:11:44Z</dc:date>
    <item>
      <title>How to connect to a splunk server and get the exported CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-connect-to-a-splunk-server-and-get-the-exported-CSV/m-p/96543#M20129</link>
      <description>&lt;P&gt;I'm completely new to splunk and I'm pretty stuck so I'm sorry in advance if any of this is unclear.&lt;/P&gt;

&lt;P&gt;How would I be able to connect to splunk server on the internet, and retrieve the exported data in a CSV? &lt;/P&gt;

&lt;P&gt;Where I am at is...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk -uri &lt;A href="https://splunk.website.cc" target="test_blank"&gt;https://splunk.website.cc&lt;/A&gt; -auth user, pass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 16:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-connect-to-a-splunk-server-and-get-the-exported-CSV/m-p/96543#M20129</guid>
      <dc:creator>zackh123</dc:creator>
      <dc:date>2012-10-19T16:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to a splunk server and get the exported CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-connect-to-a-splunk-server-and-get-the-exported-CSV/m-p/96544#M20130</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;easy way : use the web interface and use the "export result"&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;hard way : use the API to get the results in xml &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;and finally your method using the remote CLI, piping the result to a file in the correct format&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/CLIsearchsyntax"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/CLIsearchsyntax&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
splunk search "mysearch | table field1 field2 " -output csv -uri  &lt;A href="https://splunk.website.cc" target="test_blank"&gt;https://splunk.website.cc&lt;/A&gt; -auth user, pass &amp;gt; myresult.csv&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2012 15:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-connect-to-a-splunk-server-and-get-the-exported-CSV/m-p/96544#M20130</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-21T15:11:44Z</dc:date>
    </item>
  </channel>
</rss>

