# Is it possible to set jdbc input plugin retry counts?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-set-jdbc-input-plugin-retry-counts/207733>\
**Category:** Logstash\
**Created:** [November 13, 2019, 3:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-jdbc-input-plugin-retry-counts/207733 "2019-11-13T15:48:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry\_Zheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerry_zheng/32/57625_2.png) [@Jerry\_Zheng](https://discuss.elastic.co/u/Jerry_Zheng)\
**Post date:** [November 13, 2019, 3:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-jdbc-input-plugin-retry-counts/207733/1 "2019-11-13T15:48:23Z")

</div>

As title, are there any jdbc input configuration options to set retry counts? Say, when jdbc unable connect to sql server, it will retry 3 times and exit.

I have tried `connection_retry_attempts` with value 3, it is expected to retry 3 times and stop, but it keeps retring.

I have also tried `jdbc_validate_connection` but no luck.

Any ideas will be appreciated.

---

<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:** [December 11, 2019, 3:48pm UTC](https://discuss.elastic.co/t/is-it-possible-to-set-jdbc-input-plugin-retry-counts/207733/2 "2019-12-11T15:48:23Z")

</div>

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