All Apps and Add-ons

How to sync up update in REST API Modular Input

mnaim
Explorer

I'm using the REST API Modular Input app to get data from an API and index it on splunk. In my case, I'm using google api to run searches and I'm indexing the results. The problem is that I need to change the parameters of my search several times a day (via script executed via a cron). I'm a splunk noob, so the only way I got the gui to sync up with the inputs.config file is by restarting splunk. How can I get the gui side update and sync up with the backend without restarting? Thank you.

Tags (1)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

The REST API Mod Input has the ability to dynamically change and persist config parameters ie : URL arguments, headers , post body, cookies etc... You should not be using a third party cron triggered script.

You'd do this with a custom response handler in bin/responsehandlers.py

Look at the example TwitterEventHandler in the shipped release for an example of such processing behavior.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

The REST API Mod Input has the ability to dynamically change and persist config parameters ie : URL arguments, headers , post body, cookies etc... You should not be using a third party cron triggered script.

You'd do this with a custom response handler in bin/responsehandlers.py

Look at the example TwitterEventHandler in the shipped release for an example of such processing behavior.

0 Karma

mnaim
Explorer

My url_params changes a lot more than all the examples I've see so far, but may just need a little creative scripting. Thank you.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...