Developing for Splunk Enterprise

Connecting to splunk enterprise using splunk sdk for java



I am getting the below exception when trying to connect to splunk enterprise using the splunk SDK
Exception in thread "main" java.lang.RuntimeException: Unrecognized SSL message, plaintext connection?

Can anyone suggest as to what the issue might be?

Saravana Prabhu K

Tags (2)
0 Karma

Splunk Employee
Splunk Employee

Not enough info really.
It could be a few things, for example;

As per:
"Ensure that your connection credentials are correct, notably that you are using HTTPS over Port 8089 to your SplunkD Server.
As a guess, you might be trying to connect to SplunkWeb on port 8000, which is not where the REST endpoints are located."

As per:
"Splunk needs to release a new jar without SSLv3 hardwired (in in order to make this work with the latest Java 8. Meanwhile you need to stick with Java 7 or build your own jar from the SDK package and use SSLv2 instead."

0 Karma


I downvoted this post because not enough information

0 Karma
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!