<?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: Extracting Data from Splunk for reporting in an external system in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48756#M997</link>
    <description>&lt;P&gt;This process would require an explicit search to extract data either from the Splunk UI or the REST API. Assume for example that you have a Splunk saved search named “Alert Index Capacity”. You can then use the REST API to run the search on demand.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:splunk -d  "search=|savedsearch %22Alert%3A%20Index%20Capacity%22" &lt;A href="https://10.0.1.20:8089/services/search/jobs/" target="test_blank"&gt;https://10.0.1.20:8089/services/search/jobs/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;At that point the REST API will respond with something like this:&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;sid&amp;gt;1367356709.287&amp;lt;/sid&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;To obtain the results into a CSV, then use the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:splunk -k &lt;A href="https://10.0.1.21:8089/services/search/jobs/1367356709.287" target="test_blank"&gt;https://10.0.1.21:8089/services/search/jobs/1367356709.287&lt;/A&gt; --get -d output_mode=csv &amp;gt; mySplunkCSVData.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should be formatted in a table format and may satisfactory for your third party tool. If you already have all of the knowledge items in Splunk, then you can use this method to extract the data. &lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2013 15:19:46 GMT</pubDate>
    <dc:creator>Gilberto_Castil</dc:creator>
    <dc:date>2013-05-29T15:19:46Z</dc:date>
    <item>
      <title>Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48753#M994</link>
      <description>&lt;P&gt;I would like to extract the search results from searches performed by Splunk on a regular basis.&lt;/P&gt;

&lt;P&gt;This data will then be added into a database which our reporting tool sits on top of (Qlikview)&lt;/P&gt;

&lt;P&gt;I have had a look at the REST API and the CLI but I am a novice and a little confused.&lt;/P&gt;

&lt;P&gt;I have setup all the required searches that produce the data the business would require, can someone talk me through a simple way of extracting this via REST so I can populate the data into Excel or have the data delivered in csv format. &lt;/P&gt;

&lt;P&gt;I am doing a Proof of Concept at the moment so I am just trying to run a test to understand how it works.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 10:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48753#M994</guid>
      <dc:creator>DanielFordWA</dc:creator>
      <dc:date>2013-05-29T10:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48754#M995</link>
      <description>&lt;P&gt;Let's take this step-by-step.  Start out with your favorite language.  I will use Python.&lt;/P&gt;

&lt;P&gt;1- Install the Python SDK; video link: &lt;A href="https://www.youtube.com/watch?list=UUG5B6oQWWsIt-yO826IwG2Q&amp;amp;feature=player_detailpage&amp;amp;v=TUQcjSWzZg8"&gt;https://www.youtube.com/watch?list=UUG5B6oQWWsIt-yO826IwG2Q&amp;amp;feature=player_detailpage&amp;amp;v=TUQcjSWzZg8&lt;/A&gt;; &lt;BR /&gt;
Installation link: &lt;A href="http://dev.splunk.com/goto/sdk-python"&gt;http://dev.splunk.com/goto/sdk-python&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2- Connect to Splunk via the API: &lt;A href="http://dev.splunk.com/view/SP-CAAAEE4"&gt;http://dev.splunk.com/view/SP-CAAAEE4&lt;/A&gt;&lt;BR /&gt;
3- Run a simple search and display results in command line: &lt;A href="http://dev.splunk.com/view/SP-CAAAEE5"&gt;http://dev.splunk.com/view/SP-CAAAEE5&lt;/A&gt; and use "To create a basic oneshot search and display results" code example towards the bottom&lt;BR /&gt;
4- See how the results are returned&lt;BR /&gt;
5- From the results, modify the code to either create your own CSV or via the API&lt;/P&gt;

&lt;P&gt;You can also use the REST API directly using curl.  Here's a link with a code example: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/RESTAPI/RESTsearch#search.2Fjobs.2Fexport"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/RESTAPI/RESTsearch#search.2Fjobs.2Fexport&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 14:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48754#M995</guid>
      <dc:creator>barakreeves</dc:creator>
      <dc:date>2013-05-29T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48755#M996</link>
      <description>&lt;P&gt;Thanks, &lt;/P&gt;

&lt;P&gt;I am doing a Proof of Concept with Splunk to sit along side our web analytics tools. I have to say Splunk is great but getting data out of it is no easy task. I would have expected to be able to query Splunk from most other tools (Excel, Access, Qlikview etc) and load the data without much effort.&lt;/P&gt;

&lt;P&gt;I'll follow your steps and see how I go.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 14:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48755#M996</guid>
      <dc:creator>DanielFordWA</dc:creator>
      <dc:date>2013-05-29T14:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48756#M997</link>
      <description>&lt;P&gt;This process would require an explicit search to extract data either from the Splunk UI or the REST API. Assume for example that you have a Splunk saved search named “Alert Index Capacity”. You can then use the REST API to run the search on demand.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:splunk -d  "search=|savedsearch %22Alert%3A%20Index%20Capacity%22" &lt;A href="https://10.0.1.20:8089/services/search/jobs/" target="test_blank"&gt;https://10.0.1.20:8089/services/search/jobs/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;At that point the REST API will respond with something like this:&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;sid&amp;gt;1367356709.287&amp;lt;/sid&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;To obtain the results into a CSV, then use the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:splunk -k &lt;A href="https://10.0.1.21:8089/services/search/jobs/1367356709.287" target="test_blank"&gt;https://10.0.1.21:8089/services/search/jobs/1367356709.287&lt;/A&gt; --get -d output_mode=csv &amp;gt; mySplunkCSVData.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should be formatted in a table format and may satisfactory for your third party tool. If you already have all of the knowledge items in Splunk, then you can use this method to extract the data. &lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2013 15:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48756#M997</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2013-05-29T15:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48757#M998</link>
      <description>&lt;P&gt;We actually have a QlikView connector available for Splunk. E-mail me at &lt;A href="mailto:steverimar@analyticaconsulting.com"&gt;steverimar@analyticaconsulting.com&lt;/A&gt; if you are interested. We're a QlikView and Splunk partner. -Steve&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 22:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48757#M998</guid>
      <dc:creator>steverimar</dc:creator>
      <dc:date>2016-02-15T22:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Data from Splunk for reporting in an external system</title>
      <link>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48758#M999</link>
      <description>&lt;P&gt;Do we have similar examples for wget?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 20:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Extracting-Data-from-Splunk-for-reporting-in-an-external-system/m-p/48758#M999</guid>
      <dc:creator>Mgrease</dc:creator>
      <dc:date>2016-10-09T20:55:52Z</dc:date>
    </item>
  </channel>
</rss>

