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

**URL:** https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548
**Category:** Logstash
**Created:** [December 12, 2019, 1:38am UTC](https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548 "2019-12-12T01:38:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [December 12, 2019, 1:38am UTC](https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548/1 "2019-12-12T01:38:17Z")

</div>

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"
	}
}
```

---

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [December 13, 2019, 9:15pm UTC](https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548/2 "2019-12-13T21:15:12Z")

</div>

Bump

---

<div class="post-metadata">

### Author: ![EZprogramming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ezprogramming/32/57291_2.png) [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)
#### Post date: [December 28, 2019, 1:47am UTC](https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548/3 "2019-12-28T01:47:29Z")

</div>

Still interested to know the answer.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 25, 2020, 1:47am UTC](https://discuss.elastic.co/t/logstash-exec-input-plugin-doesnt-run-two-scripts-at-the-same-time/211548/4 "2020-01-25T01:47:30Z")

</div>

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