<?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: Automate: Execute a Splunk search and export the results to CSV on a windows machine in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270887#M10085</link>
    <description>&lt;P&gt;Thank you for the direction. I did try this option. However, looks like we do not have access to save or schedule searches &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; .&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 16:10:52 GMT</pubDate>
    <dc:creator>kgudapati</dc:creator>
    <dc:date>2016-12-12T16:10:52Z</dc:date>
    <item>
      <title>Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270884#M10082</link>
      <description>&lt;P&gt;Hi Experts, &lt;BR /&gt;
 I'm a new bee to Splunk. and I am trying to find an automated way to execute a splunk search, export the results in a csv format to my  Windows 7 VM or a share drive. The aim is to load the data to a SQL Server. &lt;/P&gt;

&lt;P&gt;With the Splunk set-up that we have, We cannot use DB-Connect. A few teams are using python script to execute and automate this process but I am not a linux or a python coder. Hence struggling to automate it. &lt;/P&gt;

&lt;P&gt;Can anyone please hep me on how to automate the process. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Krishna.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 17:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270884#M10082</guid>
      <dc:creator>kgudapati</dc:creator>
      <dc:date>2016-12-11T17:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270885#M10083</link>
      <description>&lt;P&gt;Hi Krishna,&lt;/P&gt;

&lt;P&gt;A similar question at &lt;A href="https://answers.splunk.com/answers/125621/how-to-export-search-result-to-my-local-directories-in-csv.html"&gt;how to export search result to my local directories in csv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It says -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2221i8BE0AB704F72FC50/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 18:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270885#M10083</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-12-11T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270886#M10084</link>
      <description>&lt;P&gt;Multiple approaches. &lt;BR /&gt;
1. If you have access to the server, then you can run &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/CLIadmincommands"&gt;"Splunk command line search directly"&lt;/A&gt;  and put an &lt;CODE&gt;outputcsv&lt;/CODE&gt; at the end of search. (or you can make the whole thing into a savedsearch if it is repetitive)&lt;BR /&gt;
2. You can use CURL if you want to access &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/RESTTUT/RESTsearches"&gt;remotely using REST Api&lt;/A&gt; . This is the best method, if you want to interact pro-grammatically and do external juggling.&lt;BR /&gt;
3. You don't even need to trigger scripts  it but generate it within Splunk. e.g. schedule it as a report within Splunk and send/export out as alert/report etc.  (Always remember Splunk is ultimately a mathematical engine and you can do anything which is possible out using code)&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 19:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270886#M10084</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-12-11T19:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270887#M10085</link>
      <description>&lt;P&gt;Thank you for the direction. I did try this option. However, looks like we do not have access to save or schedule searches &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; .&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270887#M10085</guid>
      <dc:creator>kgudapati</dc:creator>
      <dc:date>2016-12-12T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270888#M10086</link>
      <description>&lt;P&gt;Thank you for the instant response. &lt;/P&gt;

&lt;P&gt;I am a SQL/BI person, hence is challenged with coding. I did review the CURL "Remotely using REST API". Copule of Questions&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Is the Python example a working model? &lt;/LI&gt;
&lt;LI&gt;How can the Python code be executed and scheduled on a windows machine (sorry for being dumb here)&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Is there a working model where I can plug in my Splunk Search, and magically get the output in csv :).... I know its too much to ask for.&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks in advance for the help. &lt;BR /&gt;
Krishna. &lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270888#M10086</guid>
      <dc:creator>kgudapati</dc:creator>
      <dc:date>2016-12-12T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automate: Execute a Splunk search and export the results to CSV on a windows machine</title>
      <link>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270889#M10087</link>
      <description>&lt;P&gt;if you want to schedule, why you can't schedule it within splunk and export it outside?  (like the option 3 I mentioned).&lt;BR /&gt;
You don't even need a python code to execute curl. You can run install curl utility on windows and just run on "cmd" prompt. In python, you have a curl utility (pycurl) which can do the similar. It is just a oneliner&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Automate-Execute-a-Splunk-search-and-export-the-results-to-CSV/m-p/270889#M10087</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-12-13T14:20:20Z</dc:date>
    </item>
  </channel>
</rss>

