Getting Data In

How do you call multiple REST APIs?

nithinrao9696
New Member

Is it possible to call multiple APIs using Splunk? To be more clear, have an API that will log in to the get sessionID and the other call that uses the sessionID to get the list of all elements.

0 Karma

sduff_splunk
Splunk Employee
Splunk Employee

Yes, that is the major purpose of the REST API Splunk provides.

Refer to https://docs.splunk.com/Documentation/Splunk/7.2.5/RESTUM/RESTusing which outlines how to authenticate to Splunk via REST, then use the sessionID to create a search, poll to check if it has finished, and then fetch the results once finalized.

0 Karma

btawiah
Explorer

was this successful because i am also interested in the approach.

0 Karma

nithinrao9696
New Member

I'm trying to call external REST API's using splunk, will it be possible?

0 Karma

sduff_splunk
Splunk Employee
Splunk Employee

You will need to develop your own script to call the REST endpoints. Usually, this is done in Python, but you can use any language you like.

If you configure this as a scripted input, the standard output of your script will be ingested by Splunk

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...