<?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: Unable to Connect to Linux Splunk Indexer from Windows using SDK Java in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228680#M44516</link>
    <description>&lt;P&gt;Have you tried using curl to see if you can successfully hit the endpoint? Is the indexer behind a proxy? Is the REST API enabled?&lt;/P&gt;

&lt;P&gt;This page has some things to try: &lt;A href="http://dev.splunk.com/view/csharp-sdk-pcl/SP-CAAAE7W"&gt;http://dev.splunk.com/view/csharp-sdk-pcl/SP-CAAAE7W&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 01:05:20 GMT</pubDate>
    <dc:creator>gblock_splunk</dc:creator>
    <dc:date>2016-08-15T01:05:20Z</dc:date>
    <item>
      <title>Unable to Connect to Linux Splunk Indexer from Windows using SDK Java</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228679#M44515</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;I am new to Splunk so please bear with me if this is stupid. &lt;/P&gt;

&lt;P&gt;I have been doing some tinkering with the Splunk SDK for Java. While I have been successfully able to connect and retrieve data to locally installed Splunk Enterprise in my Windows machine. When I try to do the same for my remote Indexer(Linux box) from my Windows machine, the program fails to connect. The code snippet is as below :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1);
    ServiceArgs connectionArgs = new ServiceArgs();
    connectionArgs.setHost("hostname.domainname");
    connectionArgs.setUsername("admin");
    connectionArgs.setPassword("password");
    connectionArgs.setPort(8089);
    connectionArgs.setScheme("https");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run the above code from Eclipse in Windows, I get the below error :&lt;/P&gt;

&lt;P&gt;java.lang.RuntimeException: Connection timed out: connect&lt;BR /&gt;
    at com.splunk.HttpService.send(HttpService.java:409)&lt;BR /&gt;
    at com.splunk.Service.send(Service.java:1293)&lt;BR /&gt;
    at com.splunk.HttpService.post(HttpService.java:308)&lt;BR /&gt;
    at com.splunk.Service.login(Service.java:1122)&lt;BR /&gt;
    at com.splunk.Service.login(Service.java:1101)&lt;BR /&gt;
    at com.splunk.Service.connect(Service.java:187)&lt;BR /&gt;
    at com.splunk.examples.spurl.Program.run(Program.java:40)&lt;BR /&gt;
    at com.splunk.examples.spurl.Program.main(Program.java:30)&lt;BR /&gt;
Caused by: java.net.ConnectException: Connection timed out: connect&lt;BR /&gt;
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)&lt;/P&gt;

&lt;P&gt;Please let me know if this can be fixed, or this is the wrong way to do it. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have tried with SSLv3,TLSv1.1,TLSv1.2 but nothing works...&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 22:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228679#M44515</guid>
      <dc:creator>Subhra</dc:creator>
      <dc:date>2016-08-14T22:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to Linux Splunk Indexer from Windows using SDK Java</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228680#M44516</link>
      <description>&lt;P&gt;Have you tried using curl to see if you can successfully hit the endpoint? Is the indexer behind a proxy? Is the REST API enabled?&lt;/P&gt;

&lt;P&gt;This page has some things to try: &lt;A href="http://dev.splunk.com/view/csharp-sdk-pcl/SP-CAAAE7W"&gt;http://dev.splunk.com/view/csharp-sdk-pcl/SP-CAAAE7W&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 01:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228680#M44516</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-08-15T01:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to Linux Splunk Indexer from Windows using SDK Java</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228681#M44517</link>
      <description>&lt;P&gt;Thanks for the information.&lt;/P&gt;

&lt;P&gt;Actually yes the Indexer is behind a proxy. Also the REST API is enabled. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 20:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228681#M44517</guid>
      <dc:creator>Subhra</dc:creator>
      <dc:date>2016-08-15T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to Linux Splunk Indexer from Windows using SDK Java</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228682#M44518</link>
      <description>&lt;P&gt;OK, I would try curl to see if you can successfully make a request and access the API. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 05:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-Connect-to-Linux-Splunk-Indexer-from-Windows-using-SDK/m-p/228682#M44518</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-08-16T05:23:35Z</dc:date>
    </item>
  </channel>
</rss>

