All Apps and Add-ons

Splunk Add-on Builder in data input interval

mokarimi
New Member

I am developing an add-on and need to use the interval time as a variable in my script. Can someone please help me? I have looked into the helper class functions and don't see anything.

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Please try helper.get_input_stanza(YOUR_INPUT_STANZA). It can get all the parameters in your data input stanza, including interval.

Please note that this "interval" is a reserved parameter for Splunk, which defines how Splunk schedule your data input. If you want to add your own scheduler within your data input internally, please create another param like "duration" or "my_interval".

0 Karma

pietertruter1
Observer

How do you set your input to use the custom interval? I need to be able to set a cron schedule as the input interval as the input only needs to run once a week on the first day of the week

0 Karma

chli_splunk
Splunk Employee
Splunk Employee

Sorry currently we only support seconds as an interval. May add cron support in future release.

0 Karma

shugup2923
Path Finder

I also have the same issue, how can I give cron schedule in interval parameter

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...