# Bulk error in logstash

**URL:** https://discuss.elastic.co/t/bulk-error-in-logstash/154097
**Category:** Logstash
**Created:** [October 26, 2018, 5:40am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097 "2018-10-26T05:40:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Abhijith\_Vijayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhijith_vijayan/32/36866_2.png) [@Abhijith\_Vijayan](https://discuss.elastic.co/u/Abhijith_Vijayan)
#### Post date: [October 26, 2018, 5:40am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/1 "2018-10-26T05:40:42Z")

</div>

I am getting the below error from logstash frequently. Is this because of elasticsearch?

[2018-10-26T08:31:12,884][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>2}  
[2018-10-26T08:31:12,883][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>2}  
[2018-10-26T08:31:12,882][ERROR][logstash.outputs.elasticsearch] Attempted to send a bulk request to elasticsearch, but no there are no living connections in the connection pool. Perhaps Elasticsearch is unreachable or down? {:error\_message=\>"No Available connections", :class=\>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::NoConnectionAvailableError", :will\_retry\_in\_seconds=\>2}

I am sure that elasticsearch is healthy and I can curl to all nodes in the cluster.  
Any other configuration I can do, to reduce the bulk size in logstash or increase the acceptable limit it elasticsearch.

---

<div class="post-metadata">

### Author: ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)
#### Post date: [October 26, 2018, 5:56am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/2 "2018-10-26T05:56:54Z")

</div>

Were you inserting bulk data, or at which time this issue is occurring frequently.

---

<div class="post-metadata">

### Author: ![Abhijith\_Vijayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhijith_vijayan/32/36866_2.png) [@Abhijith\_Vijayan](https://discuss.elastic.co/u/Abhijith_Vijayan)
#### Post date: [October 26, 2018, 6:08am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/3 "2018-10-26T06:08:43Z")

</div>

I am using logstash elasticsearch output plugin. I think it is using the bulk api only.

---

<div class="post-metadata">

### Author: ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)
#### Post date: [October 26, 2018, 6:13am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/4 "2018-10-26T06:13:13Z")

</div>

in your input code, were you retrieving data from database? or from any APIs?

---

<div class="post-metadata">

### Author: ![Abhijith\_Vijayan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhijith_vijayan/32/36866_2.png) [@Abhijith\_Vijayan](https://discuss.elastic.co/u/Abhijith_Vijayan)
#### Post date: [October 26, 2018, 6:15am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/5 "2018-10-26T06:15:15Z")

</div>

I am retrieving data from kafka and pushing it to 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: [November 23, 2018, 6:15am UTC](https://discuss.elastic.co/t/bulk-error-in-logstash/154097/6 "2018-11-23T06:15:20Z")

</div>

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