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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...