Splunk Search

How does Splunk handle multiple data inputs?

ankithreddy777
Contributor

I need to create a scripted input in inputs.conf that runs scripts by passing arguments at an interval of 60 secs. Basically script contains a curl command to ping websites.

I need to create around 600 scripted inputs to run the same script but passing different arguments to the script as defined in each input stanza.

Does Splunk execute all the scripts at a time? Or does it have any handling mechanism to execute only a few inputs in parallel at a time and and pick other inputs once completed and so on?

0 Karma

gjanders
SplunkTrust
SplunkTrust
0 Karma

FrankVl
Ultra Champion

Wouldn't it make more sense to create a separate configuration file that contains a list of parameter sets and have a single script basically iterate through that file, calling the curl command for each of the settings listed in the configuration file?

0 Karma

ankithreddy777
Contributor

Actually, I have build an add-on to run shell script. we configure inputs on UI of Add-on. For each input on UI, we define respective parameter values which will be passed as arguments to shell script .(shell script contains curl command which accepts dynamic arguments passed to shell script).

So for each input we create an UI , it will create a stanza in inputs.conf and we have 600 such stanzas for 600 inputs created. So not sure how splunk handle all 600 inputs configured. All input calls the same script but with different arguments.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...