I am trying to connect with Splunk. It is accessible from the web browser, but not with Java REST API.
connectionArgs.put("host", "splunk-ui");
connectionArgs.put("username", "username");
connectionArgs.put("password", "passwd");
connectionArgs.put("port", 8443);
connectionArgs.put("scheme", "http");
Service splunkService = Service.connect(connectionArgs);
System.out.println("Auth Token : " + splunkService.getToken());
This is the error:
"Unrecognized SSL message, plaintext connection?" at line 'Service splunkService = Service.connect(connectionArgs);'
I am not able to understand the error.
... View more