All Apps and Add-ons

Splunk Add-On Builder: Pre-Request Script


In order to hit the endpoint needed to get data from an external API, I need to make a call to get a valid access token from the external API. I use that access token to make subsequent calls to the API, specifically the endpoint needed for data input into my Splunk Add-On.

My understanding is that when using REST for the data input method, you are only able to use a Global Account, passed into the headers, to do authenticated calls. I do not see a way to do a pre-request script in order to get the access token prior to making the subsequent call.

Is this possible in a different way?

*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>