Splunk Dev

Connecting to splunk enterprise using splunk sdk for java

sakarunanitk
Explorer

Hi,

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?

Thanks,
Saravana Prabhu K

Tags (2)
0 Karma

bohanlon_splunk
Splunk Employee
Splunk Employee

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

As per: https://answers.splunk.com/answers/67327/splunk-java-sdk-connection-to-splunk-failed.html
And: https://answers.splunk.com/answers/206990/why-am-i-getting-a-splunk-java-sdk-handshake-failu.html
"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: https://answers.splunk.com/answers/209379/no-appropriate-protocol-protocol-is-disabled-or-ci.html
"Splunk needs to release a new jar without SSLv3 hardwired (in HttpService.java) 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

DreadEclipse
Explorer

I downvoted this post because not enough information

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

New: Search and Personalization just got a major upgrade!

Hello Splunkers,  We’re excited to share two big upgrades coming to community.splunk.com today. These changes ...

Tech Talk | AI-Powered Data Management

  Now On-Demand   Join our Splunk experts for an exclusive Tech Talk as we explore the Cisco Data Fabric ...

GA: Detection Studio and Exposure Analytics in Enterprise Security (ES) 8.5

In this latest release of Enterprise Security (ES), we are excited to announce that  Detection ...