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?

Get Updates on the Splunk Community!

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...