Getting Data In

SOAP API data input - Maintaining Auth

ctripod
Explorer

I have a user who has a SOAP API they would like to collect data from and Index. I can authenticate to the SOAP API using normal HTTP digest authentication with username and password. The authentication generates a token "" in the Response XML. The token has a timeout of 30 minutes. After 30 minutes I have to call the AuthService URI again to get a new token.

My question is this. How can I pass the XML authToken from the first XML response into other data inputs? I have other Data Inputs that actually pull data from the API that need the refresh of the auth token in their POST body.

One last note. I'm using the "REST API Modular input" on Splunkbase to get the Auth request working. But I'm open to other routes.

Any Tips or Tricks? The API is pretty old and doesn't have a REST equivalent.

Thanks!

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...