# Logstash Issue sending data to elasticseach cluster

**URL:** https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205
**Category:** Elasticsearch
**Created:** [October 25, 2019, 8:23am UTC](https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205 "2019-10-25T08:23:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pdkgamage](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pdkgamage/32/56591_2.png) [@pdkgamage](https://discuss.elastic.co/u/pdkgamage)
#### Post date: [October 25, 2019, 8:23am UTC](https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205/1 "2019-10-25T08:23:07Z")

</div>

I have upgraded ELK stack into 7.4 version ( filebeat, logstash, elasticalert, kibana). I am using elasticsearch cloud.

Once after the upgrade, following error shows in logstash log file. but few of records can see in kibana.

> Blockquote  
> [2019-10-25T15:22:01,578][ERROR][logstash.outputs.elasticsearch][main] Attempted to send a bulk request to elasticsearch' but Elasticsearch appears to be unreachable or down! {:error\_message=\>"Elasticsearch Unreachable: [[https://user](https://user):xxxxxx@:9243/][Manticore::ConnectTimeout] connect timed out", :class=\>"LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError", :will\_retry\_in\_seconds=\>2} [2019-10-25T15:22:01,595][WARN][logstash.outputs.elasticsearch][main] Marking url as dead. Last error: [LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError] Elasticsearch Unreachable: [[https://user](https://user):xxxxxx@:9243/][Manticore::ConnectTimeout] connect timed out {:url=\>[https://user](https://user):xxxxxx@/, :error\_message=\>"Elasticsearch Unreachable: [[https://user](https://user):xxxxxx@:9243/][Manticore::ConnectTimeout] connect timed out", :error\_class=\>"LogStash::Outputs::Elasticsearch::HttpClient::Pool::HostUnreachableError"}

How i can solve this issue?

---

<div class="post-metadata">

### Author: ![Tek\_Chand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tek_chand/32/34318_2.png) [@Tek\_Chand](https://discuss.elastic.co/u/Tek_Chand)
#### Post date: [October 25, 2019, 9:15am UTC](https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205/2 "2019-10-25T09:15:55Z")

</div>

@pdkgamage, first all check your elasticsaerch service is up and running? Because logs are showing that logstash is not able to connect elasticsaerch. Have you defined logstash output properly?

Please review you configuration again.  
or please provide the output of following commands:

From elasticsaerch machine:

```auto
netstat -tunlp

```

From logstash machine:

```auto
telnet elasticsaerch_machine_ip 9200

```

Thanks.

---

<div class="post-metadata">

### Author: ![pdkgamage](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pdkgamage/32/56591_2.png) [@pdkgamage](https://discuss.elastic.co/u/pdkgamage)
#### Post date: [October 28, 2019, 8:29am UTC](https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205/3 "2019-10-28T08:29:20Z")

</div>

hi @Tek_Chand,

Logstash is able to connect elasticsearch cluster. Also, I can see data in kibana. The issue still this error in the logstash log. I suspect , only partial indexes are publishing to elasticsearch cluster from logstash.

Thanks,

---

<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 25, 2019, 8:29am UTC](https://discuss.elastic.co/t/logstash-issue-sending-data-to-elasticseach-cluster/205205/4 "2019-11-25T08:29:23Z")

</div>

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