All Apps and Add-ons

How to add an interval for modular input to be modified in data input page?

jonasbk
New Member

If I add “interval” to my data input like this in inputs.conf, the modular input script will run every 300 sec as expected:

[bhe-splunk-app]
python.version = python3
disabled = 1
interval = 300

[bhe-splunk-app://input]
index = bhe-splunk-app
description = "Streams data from BHE instance"

But the interval parameter does not show on the data input page in Splunk, so I can’t modify it from the Splunk UI.
When I add the parameter to the inputs.conf.spec file like this:

[bhe-splunk-app://<name>]
*Streams data from BHE instance

interval = <number>
description = "Streams data from BHE instance"

“interval” appear on the data input page, and I can modify it, but it is no longer working – the modular input script is no longer executed repeatedly on the interval.

How do I add interval so that it can be modified from the data input page and still works?

Labels (1)
Tags (2)
0 Karma

ohbuckeyeio
Communicator

Old post but following up anyway.

Leave the "interval" parameter off of the inputs.conf.spec file. You can get to it from the Data Inputs page by clicking "More settings" at the bottom of the input page.

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...