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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...