Limiting the maximum number of exec input commands

(Valentin Fischer) #1

Hi there,

I'm using the exec input to run some perl scrips that connects to some db and retrieves some data.
The issue is that I have like 30 exec statements and they all get executed when I start LS for the first time hitting the DB max conn limit for that user (in my case 10)

Is there a way to limit the maximum number of exec's on the next run ? Like execute max 10 exec commands, wait for them to finish...execute the next and so on.


(Magnus B├Ąck) #2

I don't think this is possible. Logstash can limit filtering concurrency but all inputs run in independent threads.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.