Getting Data In

How to set "Splunk Authentication" in Splunk Java SDK?

neeldesai1992
Path Finder

I got authentication like "Splunk xyz-hnhn-hsnsnhdn-etahshd" (Of course I am putting wrong password here so don't try to encrypt it). What is this authentication? and how can I set this authentication in Splunk Java SDK?

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

Hi @neeldesai1992,

Below is good example to connect Splunk using JAVA.

http://dev.splunk.com/view/java-sdk/SP-CAAAECX

For more, Please use below links
http://dev.splunk.com/view/java-sdk/SP-CAAAEFE
http://dev.splunk.com/view/java-sdk/SP-CAAAEFH

Thanks

0 Karma

neeldesai1992
Path Finder

Thanks for sharing but as you can see in the first link, the last example they are getting connected through Basic authentication and Instead of that I have something call Splunk xyz-hnhn-hsnsnhdn-etahshd . so how can I use it to connect to splunk? If I use my credentials as a basic credentials,everything works fine but with the splunk credentials it gives authentication error.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...