# How to set maximum retries on logstash output elastic plugin?

**URL:** <https://discuss.elastic.co/t/how-to-set-maximum-retries-on-logstash-output-elastic-plugin/143603>\
**Category:** Logstash\
**Created:** [August 8, 2018, 9:54pm UTC](https://discuss.elastic.co/t/how-to-set-maximum-retries-on-logstash-output-elastic-plugin/143603 "2018-08-08T21:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowt](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gowt](https://discuss.elastic.co/u/gowt)\
**Post date:** [August 8, 2018, 9:54pm UTC](https://discuss.elastic.co/t/how-to-set-maximum-retries-on-logstash-output-elastic-plugin/143603/1 "2018-08-08T21:54:35Z")

</div>

I am executing logstash from command prompt utility scheduled as windows service. my service triggers logstash execution every day once. I got a situation where if my elastic host is down (or) wrong elastic host configuration is provided. my logstash continues to retry with a infinite loop. Is there any setting that i can stop retrying after 3 attempts when "checking elastic health host" is failed.

Thank you in advance.

---

<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:** [September 5, 2018, 9:54pm UTC](https://discuss.elastic.co/t/how-to-set-maximum-retries-on-logstash-output-elastic-plugin/143603/2 "2018-09-05T21:54:35Z")

</div>

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