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!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...