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
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...