All Apps and Add-ons

REST API Modular Input: Dynamic custom URL arguments

ghee22
Engager

I am using the QualysGuard API v1 call for the user action log. The REST API call requires a date_from parameter to scope the data. I would like to make this call every 5 minutes, and have the date_from parameter be equal to (current time - 5 minutes).

Would it be possible to have this type of dynamic customer url argument?

Thank you.

Damien_Dallimor
Ultra Champion

You can plug in your own custom response handler to accomplish this.I have done this for many other REST endpoints.
Check out the docs, and look at rest_ta/bin/responsehandlers.py
If you get stuck, email me at ddallimore@splunk.com

Get Updates on the Splunk Community!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...