<?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 Java SDK Program Connection Reset in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Java-SDK-Program-Connection-Reset/m-p/551444#M91525</link>
    <description>&lt;P&gt;I created a first Java program with Splunk SDK and set scheme to "http". But I haven't this "Exception in thread "main" &lt;SPAN&gt;java.lang.RuntimeException&lt;/SPAN&gt;: Connection reset".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ServiceArgs serviceArgs = new ServiceArgs();
serviceArgs.setUsername("admin");
serviceArgs.setPassword("password");
serviceArgs.setHost("192.168.1.88");
serviceArgs.setPort(8089);
serviceArgs.setScheme("http");
Service service = Service.connect(serviceArgs);
Args oneshotSearchArgs = new Args();
InputStream resultsStream = service.oneshotSearch("search index=_internal | head 5",oneshotSearchArgs);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 11:53:46 GMT</pubDate>
    <dc:creator>Guangjie</dc:creator>
    <dc:date>2021-05-13T11:53:46Z</dc:date>
    <item>
      <title>Java SDK Program Connection Reset</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Java-SDK-Program-Connection-Reset/m-p/551444#M91525</link>
      <description>&lt;P&gt;I created a first Java program with Splunk SDK and set scheme to "http". But I haven't this "Exception in thread "main" &lt;SPAN&gt;java.lang.RuntimeException&lt;/SPAN&gt;: Connection reset".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ServiceArgs serviceArgs = new ServiceArgs();
serviceArgs.setUsername("admin");
serviceArgs.setPassword("password");
serviceArgs.setHost("192.168.1.88");
serviceArgs.setPort(8089);
serviceArgs.setScheme("http");
Service service = Service.connect(serviceArgs);
Args oneshotSearchArgs = new Args();
InputStream resultsStream = service.oneshotSearch("search index=_internal | head 5",oneshotSearchArgs);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Java-SDK-Program-Connection-Reset/m-p/551444#M91525</guid>
      <dc:creator>Guangjie</dc:creator>
      <dc:date>2021-05-13T11:53:46Z</dc:date>
    </item>
  </channel>
</rss>

