<?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 am I unable to connect to a Splunk API URL from an external VM by replacing localhost with the search head IP? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-connect-to-a-Splunk-API-URL-from-an-external/m-p/208248#M7802</link>
    <description>&lt;P&gt;Correct you're going to want to make sure there is a route from that VM to the Splunk Search Head and that port 8089 is opened on the Search Head. If you can't telnet on that port, than you have some sort of networking issue going on. &lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 13:56:11 GMT</pubDate>
    <dc:creator>ryanoconnor</dc:creator>
    <dc:date>2016-06-14T13:56:11Z</dc:date>
    <item>
      <title>Why am I unable to connect to a Splunk API URL from an external VM by replacing localhost with the search head IP?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-connect-to-a-Splunk-API-URL-from-an-external/m-p/208247#M7801</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am trying to connect to Splunk API from a different VM.&lt;/P&gt;

&lt;P&gt;My API command works when I run this as localhost to the search head VM. If I replace localhost with the IP or VM name of search head, and try to run curl, it won't connect.&lt;/P&gt;

&lt;P&gt;Telnet to 8089 port says connection refused&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunksrch01:/tmp # curl -k -u user:pwd -d "search=search host=pc* earliest=-1h@h | chart count by host" &lt;A href="https://localhost:8089/services/search/jobs/" target="test_blank"&gt;https://localhost:8089/services/search/jobs/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Above command works if on search head.&lt;/P&gt;

&lt;P&gt;But if run this from another VM by replacing &lt;CODE&gt;localhost&lt;/CODE&gt; with search head &lt;CODE&gt;IP&lt;/CODE&gt;, it won't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:pwd -d "search=search host=pc* earliest=-1h@h | chart count by host" &lt;A href="https://XX.XX.XX.XX:8089/services/search/jobs/" target="test_blank"&gt;https://XX.XX.XX.XX:8089/services/search/jobs/&lt;/A&gt;
curl: (7) couldn't connect to host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pls help&lt;BR /&gt;
Is it because 8089 port is not opened? or something else?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 09:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-connect-to-a-Splunk-API-URL-from-an-external/m-p/208247#M7801</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2016-06-14T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to connect to a Splunk API URL from an external VM by replacing localhost with the search head IP?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-connect-to-a-Splunk-API-URL-from-an-external/m-p/208248#M7802</link>
      <description>&lt;P&gt;Correct you're going to want to make sure there is a route from that VM to the Splunk Search Head and that port 8089 is opened on the Search Head. If you can't telnet on that port, than you have some sort of networking issue going on. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-connect-to-a-Splunk-API-URL-from-an-external/m-p/208248#M7802</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-14T13:56:11Z</dc:date>
    </item>
  </channel>
</rss>

