Splunk Dev

Modular input: Loop through input list

spammenot66
Contributor

I'm currently using the Splunk Add-on Builder, in python, how do i loop through the list of modular inputs

 

splunk_inputs.PNG

0 Karma
1 Solution

spammenot66
Contributor

nvrmnd, it doesn't look like you have to loop through each one. it'll do it automatically.

Adding this logged event help me confirm this info.

helper.log_info('current stanza is: {}'.format(stanza))

shout out to

 

 

View solution in original post

0 Karma

spammenot66
Contributor

nvrmnd, it doesn't look like you have to loop through each one. it'll do it automatically.

Adding this logged event help me confirm this info.

helper.log_info('current stanza is: {}'.format(stanza))

shout out to

 

 

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...