<?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: how to login into remote server . java sdk not able to parse xml file properly in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186318#M37316</link>
    <description>&lt;P&gt;Good point, retagged.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2014 14:25:32 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-10-27T14:25:32Z</dc:date>
    <item>
      <title>how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186316#M37314</link>
      <description>&lt;P&gt;i am getting this error :&lt;/P&gt;

&lt;P&gt;[Fatal Error] :1:1: Premature end of file.&lt;BR /&gt;
Exception in thread "main" com.splunk.HttpException: HTTP 404 -- &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&amp;gt;
&amp;lt;link rel="shortcut icon" href="/en-US/static/@172409/img/favicon.ico" /&amp;gt;
&amp;lt;title&amp;gt;The path '/en-US/services/auth/login' was not found. - Splunk&amp;lt;/title&amp;gt;
&amp;lt;style&amp;gt;

    *       { margin: 0; padding: 0; }
    body    { font-family: helvetica, arial, sans-serif; color: #333; padding: 20px; }
    p,pre   { margin-bottom: 1em; font-size: .8em; }
    .status { font-size: .7em; color: #999; margin-bottom: 1em; }
    .msg    { margin-bottom: 1em; font-size: 1.4em;}
    pre     { font-family: Monaco,Courier Bold,Courier New,monospace; font-size: .7em;background-color: #eee;  padding: 5px;}
    #toggle { font-size: .8em; margin-bottom: 1em; }
    .byline { color: #555; }
    .byline span { font-weight: bold; line-height: 1.4em; }
    hr      { height: 1px; background-color: #ccc; border: 0; margin: 20px 0 10px; }
    h2      { font-size: 1em; margin-bottom: 1em; }
    table   { border-collapse: collapse; }
    td      { padding: 2px; }
    td.k    { font-family: helvetica, arial, sans-serif; font-weight: bold; }
    #debug  { display: none; }

    #crashes { margin: 20px 0; padding: 10px; border: 1px solid #800; }
    #crashes dt { font-size: 12px; margin-bottom: 5px; }
    #crashes dd { white-space: pre; background: #f2f2f2; padding: 10px; margin-left: 20px; display: none; font: 10px Monaco,Courier Bold,Courier New,monospace; }

&amp;lt;/style&amp;gt;
&amp;lt;script&amp;gt;
    function toggle(what) {
        what = document.getElementById(what);
        if (what.style.display == 'block') {
            what.style.display = 'none';
        } else {
            what.style.display = 'block';
        }
    }
&amp;lt;/script&amp;gt;


&amp;lt;p class="status"&amp;gt;404 Not Found&amp;lt;/p&amp;gt;
&amp;lt;p class="homelink"&amp;gt;&amp;lt;a href="/"&amp;gt;Return to Splunk home page&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;h1 class="msg"&amp;gt;The path '/en-US/services/auth/login' was not found.&amp;lt;/h1&amp;gt;







&amp;lt;hr /&amp;gt;
&amp;lt;p class="byline"&amp;gt;You are using &amp;lt;span&amp;gt;splunk.dotcom.tesco.org&amp;lt;/span&amp;gt;, which is connected to splunkd &amp;lt;span&amp;gt;@172409&amp;lt;/span&amp;gt; at &amp;lt;span&amp;gt;https://127.0.0.1:8089&amp;lt;/span&amp;gt; on &amp;lt;span&amp;gt;Sun Oct 26 12:31:15 2014&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;




at com.splunk.HttpException.create(HttpException.java:84)
at com.splunk.HttpService.send(HttpService.java:387)
at com.splunk.Service.send(Service.java:1270)
at com.splunk.HttpService.post(HttpService.java:244)
at com.splunk.Service.login(Service.java:1099)
at com.splunk.Service.login(Service.java:1079)
at com.splunk.Service.connect(Service.java:183)
at com.test.SplunkLogin.main(SplunkLogin.java:13)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Oct 2014 12:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186316#M37314</guid>
      <dc:creator>rohtashpoonia</dc:creator>
      <dc:date>2014-10-26T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186317#M37315</link>
      <description>&lt;P&gt;Looks to me as if you're trying to make REST calls on the Splunk Web port (8000 by default) rather than on the Splunk Management port (8089 by default).&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2014 15:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186317#M37315</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-10-26T15:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186318#M37316</link>
      <description>&lt;P&gt;Good point, retagged.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 14:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186318#M37316</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-10-27T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186319#M37317</link>
      <description>&lt;P&gt;i am not accessing local host. i am using splunk_java_sdk_1.3.1 to connect to hosted splunk on my server  and port number used as my hosting server using . &lt;BR /&gt;
and using below code to connect&lt;BR /&gt;
ServiceArgs loginArgs = new ServiceArgs();&lt;BR /&gt;
        loginArgs.setUsername("username");&lt;BR /&gt;
        loginArgs.setPassword("password");&lt;BR /&gt;
        loginArgs.setHost("splunk.comops.xyz.abc.org");&lt;BR /&gt;
        loginArgs.setPort(port);&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Service service = Service.connect(loginArgs);

    for (Application app : service.getApplications().values()) {
        System.out.println(app.getName());
    }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can you provide me working sdk so i can work on it to develop an android app&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186319#M37317</guid>
      <dc:creator>rohtashpoonia</dc:creator>
      <dc:date>2020-09-28T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186320#M37318</link>
      <description>&lt;P&gt;What port are you connecting to?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186320#M37318</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-10-27T15:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186321#M37319</link>
      <description>&lt;P&gt;i cant tell its company related &lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186321#M37319</guid>
      <dc:creator>rohtashpoonia</dc:creator>
      <dc:date>2014-10-27T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186322#M37320</link>
      <description>&lt;P&gt;i can' tell port no its some company server port  . have you tried with remote server?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186322#M37320</guid>
      <dc:creator>rohtashpoonia</dc:creator>
      <dc:date>2014-10-27T15:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186323#M37321</link>
      <description>&lt;P&gt;Okay, point your browser at this secret port using HTTP and HTTPS and see what happens.&lt;/P&gt;

&lt;P&gt;By the way, if you're that secretive you may want to edit out your company name from the error message in the question.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 17:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186323#M37321</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-10-27T17:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186324#M37322</link>
      <description>&lt;P&gt;i tried with &lt;A href="http://hostname:portno"&gt;http://hostname:portno&lt;/A&gt;  but its not working . but &lt;A href="http://hostname"&gt;http://hostname&lt;/A&gt; simply working &lt;BR /&gt;
wat should i do now&lt;/P&gt;

&lt;P&gt;Thanks a lot for Helping&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 17:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186324#M37322</guid>
      <dc:creator>rohtashpoonia</dc:creator>
      <dc:date>2014-10-27T17:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to login into remote server . java sdk not able to parse xml file properly</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186325#M37323</link>
      <description>&lt;P&gt;What does "working" mean?&lt;/P&gt;

&lt;P&gt;If you're getting the regular login interface for Splunk Web then we're back at my original answer, you're trying to make REST calls against the Splunk Web port rather than the Splunk Management port.&lt;/P&gt;

&lt;P&gt;Also note, Splunk Management is HTTPS by default while Splunk Web is HTTP by default, further cementing my feeling that you're mixing up the ports.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 20:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-login-into-remote-server-java-sdk-not-able-to-parse-xml/m-p/186325#M37323</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-10-27T20:10:07Z</dc:date>
    </item>
  </channel>
</rss>

