All Apps and Add-ons

REST API URL last 5 mins


How to create a splunk addon for REST API data input which calls REST API with a time attribute in the url which should be current time - 5 minutes every calls?

For example:

Current REST API calling time is :2019-11-20T13:05:00

Then rest API url should be


to get alarms past 5 mins.

0 Karma

Splunk Employee
Splunk Employee

From image, there is a parameter begin_date which is similar to your request.
However, there is no functions such as get_current_date in REST based modular input. We need to create a Python input with some Python functions to do that.

0 Karma
Get Updates on the Splunk Community!

New Learning Videos on Topics Most Requested by You! Plus This Month’s New Splunk ...

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

How I Instrumented a Rust Application Without Knowing Rust

As a technical writer, I often have to edit or create code snippets for Splunk's distributions of ...

Splunk Community Platform Survey

Hey Splunk Community, Starting today, the community platform may prompt you to participate in a survey. The ...