I am getting below exception for send event through a java rest post call
Exception :
org.springframework.web.client.ResourceAccessException: I/O error on POST request for “https://input-prd-p-
f4txzc7qgv77.cloud.splunk.com:8088/services/collector“: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Curl command :
curl -X POST \
https://input-prd-p-f4txzc7qgv77.cloud.splunk.com:8088/services/collector \
-H 'Authorization:Splunk 07944f24-c69e-42fc-af3c-14035cddb034' \
-d '{"event": "Hello, world!", "sourcetype": "main"}'```
But its working from curl command and not working from java code.
... View more