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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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