Getting Data In

How to I find my ACCESS_TOKEN for the REST API?

tashburn
New Member

How to I find my ACCESS_TOKEN to use the REST API?

Tags (2)
0 Karma

bmacias84
Champion

@tashburn, I guessing your tying to use the HTTP Header method of authenticating with Splunkd. Your access-token is your session key which can be used against the API, which can be retieved from the /services/auth/login and will be a long string of hexadecimal chars.


curl -k -u <user>:<passw> https://<splunkd>:8089/services/auth/login \ -d username=<user> -d password=<passw>


<response>
<sessionKey>##someHexdecimalNumber##</sessionKey>
</response>

Additional info:

auth/login

REST API Overview - Auth Methods

Authentication

Hope this helps.

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, ...