All Apps and Add-ons

Can I trigger the REST API modular input from a search instead of waiting for the next polling interval tick?

kitwalker12
Engager

Is it possible to trigger the REST API modular input from a search instead of waiting for the next polling interval tick

rpicot
Explorer

When a rest input is enabled, it will perform it's first request immediately. Maybe you can just disable then re-enable the rest input to trigger a search on demand.
alt text

0 Karma

Damien_Dallimor
Ultra Champion

No , there are no interprocess communication hooks from the search language to the REST API Modular Input's python process.

You could however investigate writing your own custom generating search command that performs RESTful requests for you. The core logic for this custom command could even reuse the code from the REST API Modular Input (open source on Github)

0 Karma

DanielFordWA
Contributor

Hi Damien,

Do you know anyone that has done this or have any new examples?

Thanks,

Dan

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...