# A bug with \_bulk endpoint

**URL:** <https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776>\
**Category:** Elasticsearch\
**Created:** [April 6, 2022, 2:39pm UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776 "2022-04-06T14:39:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rithik\_greendeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rithik_greendeck/32/102811_2.png) [@Rithik\_greendeck](https://discuss.elastic.co/u/Rithik_greendeck)\
**Post date:** [April 6, 2022, 2:39pm UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/1 "2022-04-06T14:39:58Z")

</div>

```auto
[2022-04-06T07:32:33,436][ERROR][logstash.outputs.elasticsearch][main][1ba476d6d04397ba2f8ff005a1e5552e5a5314abde283c5a9a485566374f1026] Encountered an unexpected error submitting a bulk request, will retry {:message=>"Sent 150 documents but Elasticsearch returned 149 responses (likely a bug with _bulk endpoint)", :exception=>RuntimeError, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.4.1-java/lib/logstash/plugin_mixins/elasticsearch/common.rb:243:in `submit'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.4.1-java/lib/logstash/plugin_mixins/elasticsearch/common.rb:172:in `retrying_submit'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-11.4.1-java/lib/logstash/outputs/elasticsearch.rb:342:in `multi_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:143:in `multi_receive'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:121:in `multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:299:in `block in start_workers'"]}

```

facing this issue often when sending from logstash to Elasticsearch.  
what could be the issue with \_bulk endpoint?

---

<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:** [April 7, 2022, 5:56am UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/2 "2022-04-07T05:56:28Z")

</div>

What do your Elasticsearch logs show at that time?

---

<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:** [April 7, 2022, 6:57am UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/3 "2022-04-07T06:57:32Z")

</div>

Which version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![Rithik\_greendeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rithik_greendeck/32/102811_2.png) [@Rithik\_greendeck](https://discuss.elastic.co/u/Rithik_greendeck)\
**Post date:** [April 7, 2022, 7:09am UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/4 "2022-04-07T07:09:06Z")

</div>

I am using Elasticsearch:7.11.2.

---

<div class="post-metadata">

**Author:** ![Rithik\_greendeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rithik_greendeck/32/102811_2.png) [@Rithik\_greendeck](https://discuss.elastic.co/u/Rithik_greendeck)\
**Post date:** [April 7, 2022, 7:12am UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/5 "2022-04-07T07:12:56Z")

</div>

Unfortunately, I am multiple pod running and and no proper logging system. So I am unable to make sense of Elasticsearch logs.

---

<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:** [May 5, 2022, 7:13am UTC](https://discuss.elastic.co/t/a-bug-with-bulk-endpoint/301776/6 "2022-05-05T07:13:24Z")

</div>

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