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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

Industry Solutions for Supply Chain and OT, Amazon Use Cases, Plus More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...