# Fail to send data to elastic unexpected EOF

**URL:** <https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732>\
**Category:** Elasticsearch\
**Created:** [August 28, 2020, 9:25am UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732 "2020-08-28T09:25:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![greyhats13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greyhats13/32/72807_2.png) [@greyhats13](https://discuss.elastic.co/u/greyhats13)\
**Post date:** [August 28, 2020, 9:25am UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732/1 "2020-08-28T09:25:38Z")

</div>

Hi guys, we are shipping the logs to elastic public endpoint (internet) from go microservices using this modulule elastic [https://github.com/elastic/go-elasticsearch](https://github.com/elastic/go-elasticsearch), but we encounter this error:   
1. "could not get index elastic unexpected EOF"   
2. "fail to send data to elastic could not send data to elastic"   
 We frequently encounter this error when peak times occured. is it because heavy indexing during peaktime? Any idea why?

 ![go-elastic-err](https://us1.discourse-cdn.com/elastic/original/3X/2/8/283d1232fca74f78f3bd1fb57843551a66d3f522.png)

---

<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:** [August 31, 2020, 3:40am UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732/2 "2020-08-31T03:40:14Z")

</div>

Did you resolve this in [In\_flight\_request is too large and throw [circuit\_breaking\_exception] [parent] Data too large](https://discuss.elastic.co/t/in-flight-request-is-too-large-and-throw-circuit-breaking-exception-parent-data-too-large/246482/28)?

---

<div class="post-metadata">

**Author:** ![greyhats13](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greyhats13/32/72807_2.png) [@greyhats13](https://discuss.elastic.co/u/greyhats13)\
**Post date:** [August 31, 2020, 11:21am UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732/3 "2020-08-31T11:21:14Z")

</div>

yes I have resolved that issues, I set jvm heap memory to 29gb and using IOPS SSD as suggested @Christian_Dahlqvist. because setting jvm heap to 31gb caused elastic data hot is not benefit from pointer compressed and lead to high usages of heap. The high usages of heap throws the circuit\_breaking exception.

---

<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:** [August 31, 2020, 9:31pm UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732/4 "2020-08-31T21:31:13Z")

</div>

Ok, please don't create multiple topics on the same question in future 🙂

---

<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:** [August 31, 2020, 9:31pm UTC](https://discuss.elastic.co/t/fail-to-send-data-to-elastic-unexpected-eof/246732/5 "2020-08-31T21:31:16Z")

</div>


