# Encountered a retryable error. Will Retry with exponential backoff code=\>413

**URL:** <https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331>\
**Category:** Logstash\
**Created:** [May 26, 2020, 12:34pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331 "2020-05-26T12:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 26, 2020, 12:34pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/1 "2020-05-26T12:34:13Z")

</div>

please help, How to solve this error,

[2020-05-26T17:59:29,435][ERROR][logstash.outputs.elasticsearch][main][6286b14da4febadbf6b521991fe9dc9d011c6f3bdb1ee16e9be4527536d2d765] Encountered a retryable error. Will Retry with exponential backoff {:code=\>413, :url=\>"[http://localhost:9200/\_bulk](http://localhost:9200/_bulk)"}

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 26, 2020, 3:22pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/2 "2020-05-26T15:22:27Z")

</div>

413 indicates the payload that logstash is sending to elasticsearch is too large. It does not really make sense for the elasticsearch output to retry this, because if the payload is too large the first time then it will still be too large when retried.

If you want to change it at the elasticsearch end you could increase http.max\_content\_length from its default of 100MB, but a better solution might be to reduce pipeline.batch.size in logstash.

---

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 27, 2020, 6:49am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/3 "2020-05-27T06:49:35Z")

</div>

@Badger please guide me with steps , I'm new to this

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 27, 2020, 12:41pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/4 "2020-05-27T12:41:25Z")

</div>

pipeline.batch.size can be changed either on the command line or in logstash.yml (or pipelines.yml if you are using multiple pipelines).

---

<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 24, 2020, 12:41pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/5 "2020-06-24T12:41:31Z")

</div>

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