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!

How to send events & findings from AWS to Splunk using Amazon EventBridge

Amazon EventBridge is a serverless service that uses events to connect application components together, making ...

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...