<?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: Why is the REST API not answering ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181921#M36465</link>
    <description>&lt;P&gt;I am running into the same issue, however mine is a little different:&lt;/P&gt;

&lt;P&gt;curl -vku kenneth.harford &lt;A href="https://54.225.250.77:8089/services/apps/local"&gt;https://54.225.250.77:8089/services/apps/local&lt;/A&gt;&lt;BR /&gt;
Enter host password for user 'kenneth.harford':&lt;BR /&gt;
*   Trying 54.225.250.77...&lt;BR /&gt;
* Connected to 54.225.250.77 (127.0.0.1) port 8089 (#0)&lt;BR /&gt;
* Server aborted the SSL handshake&lt;BR /&gt;
* Closing connection 0&lt;BR /&gt;
curl: (35) Server aborted the SSL handshake&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;BR /&gt;
Thanks&lt;BR /&gt;
Ken&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2015 21:38:26 GMT</pubDate>
    <dc:creator>kharford</dc:creator>
    <dc:date>2015-08-25T21:38:26Z</dc:date>
    <item>
      <title>Why is the REST API not answering ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181919#M36463</link>
      <description>&lt;P&gt;I'm trying, in vain, to get answers from the REST API as described here: &lt;A href="http://dev.splunk.com/view/basic-tutorial/SP-CAAADQT"&gt;http://dev.splunk.com/view/basic-tutorial/SP-CAAADQT&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I tried a lot of things, among which:&lt;BR /&gt;
$ curl -u cibrahim -k &lt;A href="https://10.83.88.20:8089/servicesNS/cibrahim/search/"&gt;https://10.83.88.20:8089/servicesNS/cibrahim/search/&lt;/A&gt;&lt;BR /&gt;
Enter host password for user 'cibrahim':&lt;BR /&gt;
curl: (7) couldn't connect to host&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;$ curl -vk -u cibrahim &lt;A href="https://10.83.88.20:8089/servicesNS/-/-/search/jobs/1421068924.6480"&gt;https://10.83.88.20:8089/servicesNS/-/-/search/jobs/1421068924.6480&lt;/A&gt;&lt;BR /&gt;
Enter host password for user 'cibrahim':&lt;BR /&gt;
* About to connect() to 10.83.88.20 port 8089 (#0)&lt;BR /&gt;
*   Trying 10.83.88.20...&lt;BR /&gt;
* Connexion terminée par expiration du délai d'attente&lt;BR /&gt;
* couldn't connect to host&lt;BR /&gt;
* Closing connection #0&lt;BR /&gt;
curl: (7) couldn't connect to host&lt;/P&gt;

&lt;P&gt;As you can see, I don't get any answer of any kind. Connection times out  after a certain (timeout) amount of time.&lt;/P&gt;

&lt;P&gt;I checked that my local instance of splunk (on my local server @ 10.83.88.20) is listening to port 8089:&lt;BR /&gt;
 # netstat -a | grep 8089&lt;BR /&gt;
tcp        0      0 &lt;EM&gt;:8089                  *:&lt;/EM&gt;                     LISTEN&lt;BR /&gt;&lt;BR /&gt;
tcp        0      0 localhost:56809         localhost:8089          ESTABLISHED&lt;BR /&gt;
tcp        0      0 localhost:8089          localhost:56809         ESTABLISHED&lt;/P&gt;

&lt;P&gt;Any idea about what I could be missing in this (very) annoying hinderance ?&lt;/P&gt;

&lt;P&gt;Thx in advance&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2015 14:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181919#M36463</guid>
      <dc:creator>charlou</dc:creator>
      <dc:date>2015-01-12T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the REST API not answering ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181920#M36464</link>
      <description>&lt;P&gt;Hi charlou&lt;/P&gt;

&lt;P&gt;That seems to be correct. I have tried similar on one of our lab servers and it works as expected. I would suspect a firewall or similar is blocking you. It is good practice on any system to block ports that can be used to gain remote access so I suspect your architect has done that deliberately.&lt;/P&gt;

&lt;P&gt;Here was my command and output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bmunson$ curl -vku admin &lt;A href="https://54.154.184.25:8089/servicesNS/admin/search/" target="test_blank"&gt;https://54.154.184.25:8089/servicesNS/admin/search/&lt;/A&gt;
Enter host password for user 'admin':
* Hostname was NOT found in DNS cache
*   Trying 54.154.184.25...
* Connected to 54.154.184.25 (54.154.184.25) port 8089 (#0)
* TLS 1.2 connection using TLS_RSA_WITH_AES_256_CBC_SHA
* Server certificate: SplunkServerDefaultCert
* Server certificate: SplunkCommonCA
* Server auth using Basic with user 'admin'
&amp;gt; GET /servicesNS/admin/search/ HTTP/1.1
&amp;gt; Authorization: Basic YWRtaW46NnViYmxlcyE=
&amp;gt; User-Agent: curl/7.37.1
&amp;gt; Host: 54.154.184.25:8089
&amp;gt; Accept: */*
&amp;gt; 
&amp;lt; HTTP/1.1 200 OK
&amp;lt; Date: Fri, 06 Feb 2015 12:26:39 GMT
&amp;lt; Expires: Thu, 26 Oct 1978 00:00:00 GMT
&amp;lt; Cache-Control: no-store, no-cache, must-revalidate, max-age=0
&amp;lt; Content-Type: text/xml; charset=UTF-8
&amp;lt; X-Content-Type-Options: nosniff
&amp;lt; Content-Length: 9386
&amp;lt; Vary: Cookie, Authorization
&amp;lt; Connection: Keep-Alive
&amp;lt; X-Frame-Options: SAMEORIGIN
* Server Splunkd is not blacklisted
&amp;lt; Server: Splunkd
&amp;lt; 
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;!--This is to override browser formatting; see server.conf[httpServer] to disable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .--&amp;gt;
&amp;lt;?xml-stylesheet type="text/xml" href="/static/atom.xsl"?&amp;gt;
&amp;lt;feed xmlns="http://www.w3.org/2005/Atom" xmlns:s="http://dev.splunk.com/ns/rest"&amp;gt;
  &amp;lt;title&amp;gt;servicesNS&amp;lt;/title&amp;gt;
  &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/&amp;lt;/id&amp;gt;
  &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
  &amp;lt;generator build="237341" version="6.2.0"/&amp;gt;
  &amp;lt;author&amp;gt;
    &amp;lt;name&amp;gt;Splunk&amp;lt;/name&amp;gt;
  &amp;lt;/author&amp;gt;
  &amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;admin&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/admin&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/admin/search/admin" rel="alternate"/&amp;gt;
  &amp;lt;/entry&amp;gt;
  &amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;alerts&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/alerts&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/admin/search/alerts" rel="alternate"/&amp;gt;
  &amp;lt;/entry&amp;gt;
  &amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;apps&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/apps&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/admin/search/apps" rel="alternate"/&amp;gt;
  &amp;lt;/entry&amp;gt;
  &amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;auth&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/auth&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/admin/search/auth" rel="alternate"/&amp;gt;
  &amp;lt;/entry&amp;gt;
--- TRIMMED ---
  &amp;lt;entry&amp;gt;
    &amp;lt;title&amp;gt;template&amp;lt;/title&amp;gt;
    &amp;lt;id&amp;gt;https://54.154.184.25:8089/servicesNS/admin/search/template&amp;lt;/id&amp;gt;
    &amp;lt;updated&amp;gt;2015-02-06T12:26:39+00:00&amp;lt;/updated&amp;gt;
    &amp;lt;link href="/servicesNS/admin/search/template" rel="alternate"/&amp;gt;
  &amp;lt;/entry&amp;gt;
&amp;lt;/feed&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181920#M36464</guid>
      <dc:creator>bmunson_splunk</dc:creator>
      <dc:date>2015-02-06T12:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the REST API not answering ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181921#M36465</link>
      <description>&lt;P&gt;I am running into the same issue, however mine is a little different:&lt;/P&gt;

&lt;P&gt;curl -vku kenneth.harford &lt;A href="https://54.225.250.77:8089/services/apps/local"&gt;https://54.225.250.77:8089/services/apps/local&lt;/A&gt;&lt;BR /&gt;
Enter host password for user 'kenneth.harford':&lt;BR /&gt;
*   Trying 54.225.250.77...&lt;BR /&gt;
* Connected to 54.225.250.77 (127.0.0.1) port 8089 (#0)&lt;BR /&gt;
* Server aborted the SSL handshake&lt;BR /&gt;
* Closing connection 0&lt;BR /&gt;
curl: (35) Server aborted the SSL handshake&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;BR /&gt;
Thanks&lt;BR /&gt;
Ken&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 21:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-the-REST-API-not-answering/m-p/181921#M36465</guid>
      <dc:creator>kharford</dc:creator>
      <dc:date>2015-08-25T21:38:26Z</dc:date>
    </item>
  </channel>
</rss>

