# Encountered a retryable error. Will Retry with exponential backoff {:code=\>500,

**URL:** <https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138>\
**Category:** Logstash\
**Created:** [March 8, 2022, 7:06pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138 "2022-03-08T19:06:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![venky123](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@venky123](https://discuss.elastic.co/u/venky123)\
**Post date:** [March 8, 2022, 7:06pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/1 "2022-03-08T19:06:22Z")

</div>

Continuing the discussion from [Encountered a retryable error. Will Retry with exponential backoff code=\>413](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-413/234331/2):

[2022-03-07T02:18:15,991][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>500, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_monitoring/bulk?system\_id=logstash&system\_api\_version=7&interval=1s](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s)"}

May I know code 500 belongs to which error.... And please suggest the solution for this error.

Advance thanks..

---

<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:** [March 8, 2022, 7:36pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/2 "2022-03-08T19:36:34Z")

</div>

If Elasticsearch returned a 500 error then it will also have logged an error in its logs. You need to show what that error is.

---

<div class="post-metadata">

**Author:** ![venky123](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@venky123](https://discuss.elastic.co/u/venky123)\
**Post date:** [March 9, 2022, 10:26am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/3 "2022-03-09T10:26:10Z")

</div>

[2022-03-08T00:45:03,841][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>500, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_monitoring/bulk?system\_id=logstash&system\_api\_version=7&interval=1s](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s)"}  
[2022-03-08T01:06:46,107][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>503, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_bulk](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_bulk)"}  
[2022-03-08T01:06:46,277][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:46,308][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:46,317][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:46,333][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:46,347][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:46,353][WARN][logstash.filters.Elasticsearch] Failed to query Elasticsearch for previous event {:index=\>"dmb\_prod-_", :error=\>"[503] "}  
[2022-03-08T01:06:55,423][WARN][logstash.outputs.Elasticsearch] Marking url as dead. Last error: [LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError] Elasticsearch Unreachable: [[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/)][Manticore::ClientProtocolException] [internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200) failed to respond {:url=\>[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/), :error\_message=\>"Elasticsearch Unreachable: [[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/)][Manticore::ClientProtocolException] [internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200) failed to respond", :error\_class=\>"LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError"}  
[2022-03-08T01:06:55,547][ERROR][logstash.outputs.Elasticsearch] Attempted to send a bulk request to Elasticsearch' but Elasticsearch appears to be unreachable or down! {:error\_message=\>"Elasticsearch Unreachable: [[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/)][Manticore::ClientProtocolException] [internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200) failed to respond", :class=\>"LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError", :will\_retry\_in\_seconds=\>2}  
[2022-03-08T01:06:56,761][WARN][logstash.outputs.Elasticsearch] Restored connection to ES instance {:url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/)"}  
[2022-03-08T01:34:16,643][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>500, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_monitoring/bulk?system\_id=logstash&system\_api\_version=7&interval=1s](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s)"}  
[2022-03-08T05:27:30,479][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>500, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_monitoring/bulk?system\_id=logstash&system\_api\_version=7&interval=1s](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s)"}  
[2022-03-08T15:08:51,451][ERROR][logstash.outputs.Elasticsearch] Encountered a retryable error. Will Retry with exponential backoff {:code=\>500, :url=\>"[http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/\_monitoring/bulk?system\_id=logstash&system\_api\_version=7&interval=1s](http://internal-elastic-search-rbi-elb-1978030293.us-east-1.elb.amazonaws.com:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s)"}

Yeah this is the complete error Badger

---

<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:** [March 9, 2022, 6:13pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/4 "2022-03-09T18:13:48Z")

</div>

That is the logstash log, you need to show us the Elasticsearch log.

---

<div class="post-metadata">

**Author:** ![venky123](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@venky123](https://discuss.elastic.co/u/venky123)\
**Post date:** [March 10, 2022, 7:26pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/5 "2022-03-10T19:26:57Z")

</div>

Sorry I don't have access to that instance ,if I got I will paste here.

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:** [April 7, 2022, 7:27pm UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-500/299138/6 "2022-04-07T19:27:13Z")

</div>

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