All Apps and Add-ons

Splunk Add-On Builder: Pre-Request Script

nicholashebert
Engager

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...