Splunk Dev

Does anyone have example python code for a custom command that calls an external REST API in a search?

Shisa
Explorer

Hi,

May I ask if anyone has any python code example of your custom command that calls external REST API (NOT Splunk REST API) in the search?
I'd like pull information from the other system by REST based on basic search result. So that when I run the search xxxx | custom_command field1, the response from the other system REST will be able to be printed out on the results panel.

Thanks in advance!

0 Karma
1 Solution

satishsdange
Builder

Hi Shisa -
You can use REST API App https://apps.splunk.com/app/1546/ to pull data from remote data sources.

View solution in original post

satishsdange
Builder

Hi Shisa -
You can use REST API App https://apps.splunk.com/app/1546/ to pull data from remote data sources.

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...