Hi ,
I am trying to connect Splunk using Java SDK but i am getting Connection Refused Exception.
Map connectionArgs = new HashMap ();
connectionArgs.put("host", "mydomain.com");
connectionArgs.put("username", "admin");
connectionArgs.put("password", "passxxx");
connectionArgs.put("port", 8089);
connectionArgs.put("scheme", "https");
Service splunkService = Service.connect(connectionArgs);
When I am using the browser with the above url i, e, https://mydomain.com i am able to login with the above credentials but through Java sdk i am not able to connect. I debugged the code, In HttpService.java class the URL is getting constructed as
https://mydomain.com:8089/services/auth/login
I am not getting why the URL is getting constructed like this. Kindly help me out in resolving the issue at the earliest. Thanks
... View more