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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...