# Indexer failures - ES rejected execution exception

**URL:** <https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805>\
**Category:** Elasticsearch\
**Created:** [July 27, 2020, 8:21pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805 "2020-07-27T20:21:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tafsir\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tafsir_alam/32/72861_2.png) [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Post date:** [July 27, 2020, 8:21pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/1 "2020-07-27T20:21:24Z")

</div>

Hi,  
I am continuously getting Indexer failures errors on my Graylog web-UI console. This is the error:

```auto
{"type":"es_rejected_execution_exception","reason":"rejected execution of processing of [1574940][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[graylog_51][0]] containing [1253] requests, target allocation id: ThoaIwTATn2Qy-FChUg69w, primary term: 1 on EsThreadPoolExecutor[name = HXyEMKD/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@73398a43[Running, pool size = 8, active threads = 8, queued tasks = 200, completed tasks = 934971]]"}

```

Already viewed the same topics in the forum but nothing helped.

I have increased the ES resource as well but still getting the same error.  
Current Resources for ES Cluster:

ES Master Nodes - 4 Core CPU  
ES Master Nodes - 16 Core CPU

Help needed! A quick response will be appreciated.

Thanks

---

<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:** [July 27, 2020, 10:32pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/2 "2020-07-27T22:32:36Z")

</div>

If you are still getting them, then your cluster is still under resourced.  
What version are you running?

---

<div class="post-metadata">

**Author:** ![Tafsir\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tafsir_alam/32/72861_2.png) [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Post date:** [July 28, 2020, 6:03am UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/3 "2020-07-28T06:03:06Z")

</div>

Hi, @warkolm I am using ES version 6.8  
Graylog - 3.3.2

---

<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:** [July 28, 2020, 6:10am UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/4 "2020-07-28T06:10:42Z")

</div>

Do you have [Monitoring](https://www.elastic.co/guide/en/kibana/current/xpack-monitoring.html) enabled? What does it show when you get these sorts of errors?

---

<div class="post-metadata">

**Author:** ![Tafsir\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tafsir_alam/32/72861_2.png) [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Post date:** [July 28, 2020, 12:11pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/5 "2020-07-28T12:11:19Z")

</div>

I haven't enabled Monitoring yet but planning to do it later.  
Due to these plenty of index failures:  
Do I loose the logs or they are getting still written to Elasticsearch?

---

<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:** [July 28, 2020, 9:27pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/6 "2020-07-28T21:27:10Z")

</div>

Elasticsearch does not accept them, I don't know what Graylog does with that response though.

---

<div class="post-metadata">

**Author:** ![Tafsir\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tafsir_alam/32/72861_2.png) [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Post date:** [July 29, 2020, 5:16pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/7 "2020-07-29T17:16:27Z")

</div>

@warkolm  
Also, I just want to know are the logs will be completed ignored by ES or it will be re-tried until written to the disk?

---

<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:** [July 29, 2020, 8:52pm UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/8 "2020-07-29T20:52:59Z")

</div>

My previous answer is the only one I can give again there.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 30, 2020, 5:38am UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/9 "2020-07-30T05:38:43Z")

</div>

Elasticsearch will return an error. What happens after that depends on how Graylog handles those errors, which is not something we can answer here.

---

<div class="post-metadata">

**Author:** ![Tafsir\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tafsir_alam/32/72861_2.png) [@Tafsir\_Alam](https://discuss.elastic.co/u/Tafsir_Alam)\
**Post date:** [August 10, 2020, 8:25am UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/10 "2020-08-10T08:25:21Z")

</div>

hmm  
Thanks @warkolm @Christian_Dahlqvist

---

<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:** [September 7, 2020, 8:25am UTC](https://discuss.elastic.co/t/indexer-failures-es-rejected-execution-exception/242805/11 "2020-09-07T08:25:32Z")

</div>

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