<?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: Not able to retrieve  Splunk data using Splunk REST API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376484#M94313</link>
    <description>&lt;P&gt;Found in step 3 on the link I gave.&lt;/P&gt;

&lt;P&gt;Also note the comment someone left about 7.1.1 saying they had to use this endpoint.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/1423855196.339/results"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/1423855196.339/results&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 17:39:05 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2018-07-26T17:39:05Z</dc:date>
    <item>
      <title>Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376481#M94310</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I want to pull data out of Splunk.&lt;BR /&gt;
So, Im using REST API to export data which uses CURL call.&lt;BR /&gt;
For example:am trying below&lt;/P&gt;

&lt;P&gt;curl -ku username:pass https://:/services/search/jobs --data-urlencode 'search=search index="_internal" | stats count(eval(sourcetype LIKE "splunk'%'")) AS st_splunk count AS total by host'&lt;/P&gt;

&lt;P&gt;I get SID as result and I ran below one&lt;/P&gt;

&lt;P&gt;curl -ku username:pass https://:/services/search/jobs//results/ -d output_mode=csv -d count=50000 -d offset=0 -o /tmp/my-output.csv&lt;/P&gt;

&lt;P&gt;"result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;msg type="FATAL"&amp;gt;Method Not Allowed&amp;lt;/msg&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why no result found? What ma missing?&lt;BR /&gt;
Please help on this.&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
Mala S&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376481#M94310</guid>
      <dc:creator>mala_splunk_91</dc:creator>
      <dc:date>2020-09-29T20:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376482#M94311</link>
      <description>&lt;P&gt;Use the REST API TA in Splunkbase. It's free and works great &lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1546/"&gt;https://splunkbase.splunk.com/app/1546/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376482#M94311</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-07-26T17:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376483#M94312</link>
      <description>&lt;P&gt;Looks like you’re very close but have the wrong URL for getting results.&lt;/P&gt;

&lt;P&gt;Follow the “make sure you do” section here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Search/ExportdatausingRESTAPI"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Search/ExportdatausingRESTAPI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376483#M94312</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-07-26T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376484#M94313</link>
      <description>&lt;P&gt;Found in step 3 on the link I gave.&lt;/P&gt;

&lt;P&gt;Also note the comment someone left about 7.1.1 saying they had to use this endpoint.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/1423855196.339/results"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/1423855196.339/results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376484#M94313</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-07-26T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376485#M94314</link>
      <description>&lt;P&gt;We need to pull data and collected in remote server which has connection with Splunk UI&lt;BR /&gt;
So, Am running this CURL commands in remote server to pull data out of splunk UI server.&lt;BR /&gt;
(Remote servers is separate Application server  which needs splunk data).&lt;/P&gt;

&lt;P&gt;so, this is the case, Can  I do this by REST API app? or how can i pull out of  splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 12:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376485#M94314</guid>
      <dc:creator>mala_splunk_91</dc:creator>
      <dc:date>2018-08-01T12:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to retrieve  Splunk data using Splunk REST API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376486#M94315</link>
      <description>&lt;P&gt;Yes, but you have to build your own REST API app.&lt;/P&gt;

&lt;P&gt;Using instructions here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Search/ExportdatausingRESTAPI"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Search/ExportdatausingRESTAPI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 16:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-retrieve-Splunk-data-using-Splunk-REST-API/m-p/376486#M94315</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-08-01T16:15:55Z</dc:date>
    </item>
  </channel>
</rss>

