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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...