# 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/349802>\
**Category:** Logstash\
**Created:** [December 21, 2023, 1:55pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802 "2023-12-21T13:55:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathishkumarD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathishkumard/32/130220_2.png) [@sathishkumarD](https://discuss.elastic.co/u/sathishkumarD)\
**Post date:** [December 21, 2023, 1:55pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802/1 "2023-12-21T13:55:32Z")

</div>

Elastic search and Logstash version: 8.5.1

Getting below error from logstash when trying to transfer files to elasticsearch. Could someone help me to fix the issue.

[ERROR][logstash.outputs.elasticsearch][main][532e27bbefdd100da799e4a7a4a8fe531f03b66dec4070a81ff7933a1cbb551f] Encountered a retryable error (will retry with exponential backoff) {:code=\>413, :url=\>"[https://elasticsearhhostname:443/\_bulk](https://elasticsearhhostname:443/_bulk)", :content\_length=\>1232671}

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 21, 2023, 3:50pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802/2 "2023-12-21T15:50:15Z")

</div>

If you are sending data to ES in the cloud, check [this](https://stackoverflow.com/questions/67303881/encountered-a-retryable-error-will-retry-with-exponential-backoff-413).

---

<div class="post-metadata">

**Author:** ![sathishkumarD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathishkumard/32/130220_2.png) [@sathishkumarD](https://discuss.elastic.co/u/sathishkumarD)\
**Post date:** [January 1, 2024, 10:51am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802/3 "2024-01-01T10:51:04Z")

</div>

Hi @Rios ,

```
 I tried setting up the max content length in elasticsearch.yml file as below. Pods are up and running without an issue but still could see same logs in logstash. 

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c4f214734820bb6f3c994a2fd6251d304b8483fe.png)

Logs from Logstash pod:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5cca2ce7df7e3872cc94c408da78cdf625f9894d.png)

---

<div class="post-metadata">

**Author:** ![sathishkumarD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathishkumard/32/130220_2.png) [@sathishkumarD](https://discuss.elastic.co/u/sathishkumarD)\
**Post date:** [January 2, 2024, 9:02am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802/4 "2024-01-02T09:02:25Z")

</div>

@spinscale ,

```
 I have seen in few posts that you have provided different solution for the above issue, could you help me to resolve this and its happening in the production environment and I really got struck.

```

Thanks

---

<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 30, 2024, 9:03am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/349802/5 "2024-01-30T09:03:10Z")

</div>

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