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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...