<?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: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213119#M62495</link>
    <description>&lt;P&gt;Dispatch &lt;EM&gt;runs&lt;/EM&gt; a search, and then if you're immediately trying to get &amp;lt;sid&amp;gt; results, it might not be done (and there may be no results). You could consider an intermediary step at /search/jobs/&amp;lt;sid&amp;gt; to see the value of isDone....&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2016 16:47:53 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2016-01-04T16:47:53Z</dc:date>
    <item>
      <title>Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213116#M62492</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I'm trying to build a mini SDK for the REST API using Golang (focusing on the search/saved search endpoints at the moment). I've got alot of the endpoints working individually where I can create saved search, dispatch, delete, etc. Same with searching where I can search jobs, get search results of a job, etc.&lt;/P&gt;

&lt;P&gt;However,&lt;BR /&gt;
When I try to run multiple methods in succession (mainly Dispatch Saved Search to get SID and then get Search Results for given SID), it fails. The Dispatch method returns the SID.&lt;BR /&gt;
When I try to run the Search Results GET with the SID though, it returns nothing.&lt;/P&gt;

&lt;P&gt;Any one have any suggetsions on this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213116#M62492</guid>
      <dc:creator>ks2211</dc:creator>
      <dc:date>2016-01-04T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213117#M62493</link>
      <description>&lt;P&gt;Can you provide the paths to the endpoints you're querying? I'm not sure which of several possible endpoints you mean by "Search Results GET".&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213117#M62493</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2016-01-04T16:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213118#M62494</link>
      <description>&lt;P&gt;So I use this one&lt;BR /&gt;
"saved/searches/{name}/dispatch" to get the SID&lt;/P&gt;

&lt;P&gt;Then I try this one&lt;BR /&gt;
"search/jobs/{search_id}/results" to get the results of the saved search&lt;/P&gt;

&lt;P&gt;The SID returns fine. But I can't get the results back--for whatever reason.&lt;BR /&gt;
The request URL when the code runs returns the data fine in the browser/curl request. However, it seems like my code isn't going through to hit the endpoint after the first time.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213118#M62494</guid>
      <dc:creator>ks2211</dc:creator>
      <dc:date>2016-01-04T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213119#M62495</link>
      <description>&lt;P&gt;Dispatch &lt;EM&gt;runs&lt;/EM&gt; a search, and then if you're immediately trying to get &amp;lt;sid&amp;gt; results, it might not be done (and there may be no results). You could consider an intermediary step at /search/jobs/&amp;lt;sid&amp;gt; to see the value of isDone....&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 16:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213119#M62495</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2016-01-04T16:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213120#M62496</link>
      <description>&lt;P&gt;Ahhhhhhh this is perfect thank you! Now it works fine &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 17:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213120#M62496</guid>
      <dc:creator>ks2211</dc:creator>
      <dc:date>2016-01-04T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213121#M62497</link>
      <description>&lt;P&gt;Hey so I just had a question regarding this--is there a good way to check the status of the job and get the SID and then get the results? &lt;/P&gt;

&lt;P&gt;Currently, I'm hitting the endpoint /search/jobs/ but I'm doing a set interval (or time.Sleep in Golang's case) to pause the program at this state until the job is "done". &lt;/P&gt;

&lt;P&gt;Is there a way to not pause and I guess poll this endpoint (not sure if this is correct terminology?)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 19:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213121#M62497</guid>
      <dc:creator>ks2211</dc:creator>
      <dc:date>2016-01-05T19:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213122#M62498</link>
      <description>&lt;P&gt;I'm unable to get the sid for my search rather I'm getting the below details. Please assist&lt;/P&gt;

&lt;P&gt;curl -s -k -u 'hdcauser:hdcauser123' -o - &lt;A href="https://splunkapi.homedepot.com:8089/services/search/jobs"&gt;https://splunkapi.homedepot.com:8089/services/search/jobs&lt;/A&gt; -d "search+${ENCODED_QRY}"|head&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkapi.homedepot.com:8089/services/search/jobs"&gt;https://splunkapi.homedepot.com:8089/services/search/jobs&lt;/A&gt;&lt;BR /&gt;
  2016-04-20T11:22:46-04:00&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;name&amp;gt;Splunk&amp;lt;/name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213122#M62498</guid>
      <dc:creator>Ravimrawi</dc:creator>
      <dc:date>2016-04-20T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213123#M62499</link>
      <description>&lt;P&gt;--This is to override browser formatting; see server.conf[httpServer] to disable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . &lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:23:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213123#M62499</guid>
      <dc:creator>Ravimrawi</dc:creator>
      <dc:date>2016-04-20T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST API search endpoints to retrieve a saved search SID and search results, why are no results returned?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213124#M62500</link>
      <description>&lt;P&gt;COuld you tell me how to get rid all these texts and get only the sid ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 15:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-REST-API-search-endpoints-to-retrieve-a-saved-search-SID/m-p/213124#M62500</guid>
      <dc:creator>Ravimrawi</dc:creator>
      <dc:date>2016-04-20T15:28:43Z</dc:date>
    </item>
  </channel>
</rss>

