# Logstash exec timeout

**URL:** https://discuss.elastic.co/t/logstash-exec-timeout/376389
**Category:** Logstash
**Created:** [March 25, 2025, 4:03pm UTC](https://discuss.elastic.co/t/logstash-exec-timeout/376389 "2025-03-25T16:03:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![O\_O\_O](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/o_o_o/32/141961_2.png) [@O\_O\_O](https://discuss.elastic.co/u/O_O_O)
#### Post date: [March 25, 2025, 4:03pm UTC](https://discuss.elastic.co/t/logstash-exec-timeout/376389/1 "2025-03-25T16:03:55Z")

</div>

I have a long running task executed by [exec](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-exec.html) input plugin, if the current task takes longer then the interval that I have set, does it simply cancel the current task and start a new one, or does it spawn a new child process to run a fresh exec?
