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!

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

Getting Started with AIOps: Event Correlation Basics and Alert Storm Detection in ...

Getting Started with AIOps:Event Correlation Basics and Alert Storm Detection in Splunk IT Service ...

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...