: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 in ELK Stack by akhtar
• 33,120 points
679 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 by MD
• 78,020 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 in ELK Stack by MD
• 78,020 points
89 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 in ELK Stack by MD
• 78,020 points
546 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 in ELK Stack by MD
• 78,020 points
1,517 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 in ELK Stack by Pawan
• 380 points
884 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
804 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 in ELK Stack by MD
• 78,020 points
106 views