# Http output - automatic\_retries retry period

**URL:** <https://discuss.elastic.co/t/http-output-automatic-retries-retry-period/56182>\
**Category:** Logstash\
**Created:** [July 22, 2016, 12:51pm UTC](https://discuss.elastic.co/t/http-output-automatic-retries-retry-period/56182 "2016-07-22T12:51:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![auerbecktj](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@auerbecktj](https://discuss.elastic.co/u/auerbecktj)\
**Post date:** [July 22, 2016, 12:51pm UTC](https://discuss.elastic.co/t/http-output-automatic-retries-retry-period/56182/1 "2016-07-22T12:51:00Z")

</div>

I'm currently using the http output plugin in order to post to an API. I noticed that the default for automatic\_retries is just 1. We essentially want this to keep retrying until it succeeds, but I don't see a straightforward way of doing this. For this reason I've set the retry count to something fairly high (1000) assuming that it retries every second -- it would retry for at least 10 minutes. This seems like a bit of overkill -- but I'm looking for the following answers:

1. How often do these retries occur? Is it just one right after the other? Or is there some "sleep" period between retries?
2. Is there a way to have these just retry indefinitely? We're inserting messages into this API and don't want to lose any messages, so this would be the preferred method. Right now I just have any failures written off to a file and then we reprocess the fallout to be placed back to the API.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 29, 2016, 10:48am UTC](https://discuss.elastic.co/t/http-output-automatic-retries-retry-period/56182/2 "2016-07-29T10:48:54Z")

</div>

Logstash uses the Manticore library, which in turn in a JRuby wrapper of the Apache HttpClient library. I poked around to find something about the retry interval but didn't find anything, but that's probably where you should be looking.

---

<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 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/http-output-automatic-retries-retry-period/56182/3 "2017-07-06T04:45:58Z")

</div>


