Splunk Cloud Platform

How to create authentication token and then use it to call Splunk Cloud REST API endpoints?

rishav-ukg
Loves-to-Learn Lots

Hi, 

From java service I want to call Splunk Cloud REST API endpoints.
I need help in how to create authentication token for splunk cloud and then pass that token while calling search endpoints to execute the query and get the results back.

When logging into my <org-name>.splunkcloud.com in browser it is done via SSO.

Can anybody please provide sample curl which I can use, I went through documentation, but I didn't get much, I'm new to this, any help is highly appreciated.

#splunkcloud
@splunkclouduser @splunkcloudnoob 

Thanks.

Labels (2)
0 Karma

rishav-ukg
Loves-to-Learn Lots

@richgalloway 
On each Splunk cloud REST API call from java service I want to create authentication token in the java service itself and use it for the splunk cloud search api. 
So I need how to create authentication token like which endpoint I need to call for this and what all parameters are required to create auth JWT token, if you have a curl and you can share that would be very helpful.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That information is in the same manual.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You can find out about how to create and use authentication tokens in the Securing Splunk Cloud Platform manual.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...