# Getting An unknown error occurred sending a bulk request to Elasticsearch

**URL:** https://discuss.elastic.co/t/getting-an-unknown-error-occurred-sending-a-bulk-request-to-elasticsearch/333378
**Category:** Logstash
**Created:** [May 14, 2023, 12:10pm UTC](https://discuss.elastic.co/t/getting-an-unknown-error-occurred-sending-a-bulk-request-to-elasticsearch/333378 "2023-05-14T12:10:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Manjiri](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Manjiri](https://discuss.elastic.co/u/Manjiri)
#### Post date: [May 14, 2023, 12:10pm UTC](https://discuss.elastic.co/t/getting-an-unknown-error-occurred-sending-a-bulk-request-to-elasticsearch/333378/1 "2023-05-14T12:10:50Z")

</div>

After Starting the logstash the logs are fetching for 5 mins after that in logstash facing below error :  
An unknown error occurred sending a bulk request to Elasticsearch (will retry indefinitely) {:message=\> "incompatible encoding: IBM437 and UTF-8", : exception=\>Encoding:: CompatibilityError

If we again restart the logstash again facing same issue after 5 mins.

---

<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: [May 14, 2023, 5:33pm UTC](https://discuss.elastic.co/t/getting-an-unknown-error-occurred-sending-a-bulk-request-to-elasticsearch/333378/2 "2023-05-14T17:33:42Z")

</div>

logstash has decided that your events are encoded as IBM437 and elasticsearch does not like that. You may be able to fix this by telling your input what encoding it should be using.

---

<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: [June 11, 2023, 5:34pm UTC](https://discuss.elastic.co/t/getting-an-unknown-error-occurred-sending-a-bulk-request-to-elasticsearch/333378/3 "2023-06-11T17:34:08Z")

</div>

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