All Apps and Add-ons

Splunk Python Helpers and getting interval from config file to use in input script

brent_weaver
Builder

I am writing a modular input using the App Builder (which is super cool) and I need to make my API calls to be in sync with when Splunk schedules the script to run. I notice there are allot of helper functions where you can mine data from your config you create, however I do not see one for interval. Am I missing it?

0 Karma

awni
New Member

 helper.get_arg(“interval”) is not working with me.

 

I used helper.get_input_stanza() to retrieve the stanza information as a dict. for the dict you will find the interval value.

 

Thanks,

Awni

0 Karma

brent_weaver
Builder

I found my my answer. If I use helper.get_arg(“interval”) I get the value I am looking for.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...