error type LogStash Outputs ElasticSearch HttpClient Pool HostUnreachableError error Elasticsearch Unreachable http localhost 9200 Connection refused Connection refused

0 votes

Hi Guys,

I am trying to run the Logstash server, but it is showing me the below error.

[2020-06-19T07:30:14,013][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
[2020-06-19T07:30:19,238][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
[2020-06-19T07:30:24,327][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}

How can I solve this error?

Jun 19, 2020 in ELK Stack by akhtar
• 38,260 points
7,602 views

1 answer to this question.

0 votes

Hi@akhtar,

Logstash is trying to connect the ElasticSearch server. But seems it is unable to connect your ElasticSearch. Check IP and port no. in your Logstash configuration file. It should be IP:9200 format. Also, make sure your ElasticSearch is up before starting Logstash service.

answered Jun 19, 2020 by MD
• 95,460 points
:error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/]Connection refused (Connection refused)"} | Edureka Community
Check your ElasticSearch service and network connectivity.

Related Questions In ELK Stack

0 votes
1 answer

How to install Elasticsearch tool in Linux System ?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,460 points
1,016 views
0 votes
1 answer

bash: cd: root/elasticsearch/: Permission denied

Hi@akhtar, You need to set permission for elasticsearch ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,460 points
4,840 views
0 votes
1 answer

java.lang.RuntimeException: can not run elasticsearch as root

Hi@akhtar, ElasticSearch will not require root privilege to ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,460 points
20,197 views
0 votes
2 answers

How to run Elasticsearch as root user in Linux machine?

Step 1: Pull images of elastic search ...READ MORE

answered Jun 19, 2020 in ELK Stack by PAWAN
• 380 points
7,648 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

How to integrate Logstash with ElasticSearch?

Hi@akhtar, You can use elasticsearch plugin to integrate ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,460 points
1,270 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP