Logstash Exec input plugin doesn't run two scripts at the same time

Here is my scenario for using Logstash Exec input plugin, I have two scripts scheduled at 15 21 * * * UTC time, but the Logstash Ruby output plugin result only shows one of the scripts as an output.

Does each Exec plugin get executed one at a time or are they all executed at the same scheduled time?

I suppose they are scheduled one after another and because the scheduled time has passed, it doesn't execute the second script.

scripts.conf:

input {
	exec {
		command => "python3 ${LOGSTASH_HOME}/src/script/cs/fruitcount/fruitcount_handler.py"
		schedule => "${SCHEDULER}"
		type => "CS_FRUITCOUNT"
	}
	exec {
		command => "python3 ${LOGSTASH_HOME}/src/script/cs/machine/machine_handler.py"
		schedule => "${SCHEDULER}"
		type => "CS_MACHINE_TEMP"
	}
}

Bump

Still interested to know the answer.

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