# Force Logstash Finish on Error

**URL:** <https://discuss.elastic.co/t/force-logstash-finish-on-error/337331>\
**Category:** Logstash\
**Created:** [June 30, 2023, 4:50pm UTC](https://discuss.elastic.co/t/force-logstash-finish-on-error/337331 "2023-06-30T16:50:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![palomasun](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@palomasun](https://discuss.elastic.co/u/palomasun)\
**Post date:** [June 30, 2023, 4:50pm UTC](https://discuss.elastic.co/t/force-logstash-finish-on-error/337331/1 "2023-06-30T16:50:11Z")

</div>

Hi,

I use logstash 7.12.1 and I would like to avoid, in case of any error, a ethernal loop:  
For instance, if my configuration file doesn´t have a certification path it , loops: "unreacheble elastic... "  
Is there a way to configure a timeout, so that the proccess finish on it own?

---

<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:** [June 30, 2023, 4:50pm UTC](https://discuss.elastic.co/t/force-logstash-finish-on-error/337331/2 "2023-06-30T16:50:12Z")

</div>

logstash 7.12.1 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 30, 2023, 5:03pm UTC](https://discuss.elastic.co/t/force-logstash-finish-on-error/337331/3 "2023-06-30T17:03:07Z")

</div>

> [@palomasun](#):
>
> Is there a way to configure a timeout, so that the proccess finish on it own?

There is not, Logstash will keep retrying until the error is fixed.

---

<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:** [July 28, 2023, 5:03pm UTC](https://discuss.elastic.co/t/force-logstash-finish-on-error/337331/4 "2023-07-28T17:03:34Z")

</div>

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