# 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/291417>\
**Category:** Logstash\
**Created:** [December 10, 2021, 11:11am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/291417 "2021-12-10T11:11:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danushkalakmina](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@danushkalakmina](https://discuss.elastic.co/u/danushkalakmina)\
**Post date:** [December 10, 2021, 11:11am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/291417/1 "2021-12-10T11:11:56Z")

</div>

Hi there  
i got this error in my logstash while sending logs to the Elasticsearch cluster.When i restarted the logstash service it got fix. But after 1-2 days it will happen recursively.

```auto
[2021-12-10T10:17:52,948][ERROR][logstash.outputs.opensearch][main][65ef98198f4701380b183a6cae9af80e6ea76f603b48c371ee10903de85f4f7b] Encountered a retryable error (will retry with exponential backoff) {:code=>413, :url=>"https://example.xxxxxxx.com:443/_bulk", :content_length=>10487824}
[2021-12-10T10:17:53,139][ERROR][logstash.outputs.opensearch][main][65ef98198f4701380b183a6cae9af80e6ea76f603b48c371ee10903de85f4f7b] Encountered a retryable error (will retry with exponential backoff) {:code=>413, :url=>"https://example.xxxxxxx.com:443/_bulk", :content_length=>10487851}
[2021-12-10T10:17:57,300][ERROR][logstash.outputs.opensearch][main][65ef98198f4701380b183a6cae9af80e6ea76f603b48c371ee10903de85f4f7b] Encountered a retryable error (will retry with exponential backoff) {:code=>413, :url=>"https://example.xxxxxxx.com:443/_bulk", :content_length=>10488718}

```

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 10, 2021, 2:36pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/291417/2 "2021-12-10T14:36:20Z")

</div>

> [@danushkalakmina](#):
>
> `:code=>413`

This happens when the request you sent is too large for the server to handle.  
Based on the content\_length output it looks like your content is increasing every time you try to send it and it's causing problems.  
You can adjust the `http.max_content_length` on elasticsearch ([Networking | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-network.html))

---

<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:** [January 7, 2022, 2:36pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/291417/3 "2022-01-07T14:36:40Z")

</div>

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