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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...