Monitoring Splunk

Splunk SDK via proxy

MaheshPalemkota
New Member

Hello..
We have trouble connecting to Splunk using splunk sdk for java. Our network should go through proxy. and it is giving me below error

Caused by: java.lang.NoSuchMethodError: com.splunk.SSLSecurityProtocol.(Ljava/lang/String;ILcom/splunk/SSLSecurityProtocol;)V
at com.splunk.SSLSecurityProtocol$2.(SSLSecurityProtocol.java:7)
at com.splunk.SSLSecurityProtocol.(SSLSecurityProtocol.java:7)
at com.t.pmr.di.rest.config.SplunkRestConfiguration.splunkServerConnecter(SplunkRestConfiguration.java:21)
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55.CGLIB$splunkServerConnecter$0()
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55$$FastClassBySpringCGLIB$$eb15fde.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55.splunkServerConnecter()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Tags (1)
0 Karma

dkeck
Influencer

Hi,

did you see this post? I think they are close to your problem.

https://answers.splunk.com/answers/67327/splunk-java-sdk-connection-to-splunk-failed.html

0 Karma

dkeck
Influencer

Did this do anything for you :)?

if it helped please accept the question 🙂

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...