# \[ERROR\]\[logstash.outputs.elasticsearch\]\[main\] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"http://127.0.0.1:9200/\_bulk", :content\_length=\>137306}

**URL:** <https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436>\
**Category:** Logstash\
**Created:** [May 23, 2022, 11:56pm UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436 "2022-05-23T23:56:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunpasup](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sunpasup](https://discuss.elastic.co/u/sunpasup)\
**Post date:** [May 23, 2022, 11:56pm UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/1 "2022-05-23T23:56:06Z")

</div>

we are facing above issue while uploading large sets of data from postgres table.

based on basic research it looks like, its because of malfunctioned data.

how to fix this ? how to identify what data is causing this issue.

tried on logstash 8.2.0 and 7.1.5, issue is same.No errors on Elasticsearch,  
Please help TIA

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2022, 12:20am UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/2 "2022-05-24T00:20:28Z")

</div>

Welcome to our community! 😃

It'd be handy if you could please post the entire error you are seeing.

---

<div class="post-metadata">

**Author:** ![sunpasup](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sunpasup](https://discuss.elastic.co/u/sunpasup)\
**Post date:** [May 24, 2022, 1:21am UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/3 "2022-05-24T01:21:15Z")

</div>

2022-05-23T16:58:04,465][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>137763}

[2022-05-23T16:58:07,162][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>137763}

[2022-05-23T16:58:11,251][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>137763}

[2022-05-23T16:58:11,629][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>137049}

[2022-05-23T16:58:13,901][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>136787}

[2022-05-23T16:58:19,343][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>137763}

[2022-05-23T16:58:19,435][ERROR][logstash.outputs.Elasticsearch][main][22688175efc481c9ec82bea14cbf17c4ddb2d61eb55c743b4fb8c628613c91cd] Encountered a retryable error (will retry with exponential backoff) {:code=\>400, :url=\>"[http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)", :content\_length=\>138585}

this is the error we see immediately after running conf\_tmpl file.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2022, 1:25am UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/4 "2022-05-24T01:25:38Z")

</div>

Is there anything in the Elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![sunpasup](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sunpasup](https://discuss.elastic.co/u/sunpasup)\
**Post date:** [May 24, 2022, 2:03am UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/5 "2022-05-24T02:03:29Z")

</div>

nothing, it looks like never reached Elasticsearch

---

<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 21, 2022, 2:03am UTC](https://discuss.elastic.co/t/error-logstash-outputs-elasticsearch-main-encountered-a-retryable-error-will-retry-with-exponential-backoff-code-400-url-http-127-0-0-1-9200-bulk-content-length-137306/305436/6 "2022-06-21T02:03:45Z")

</div>

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