简体   繁体   中英

HostUnreachableError on starting logstash

Error occured while starting logstash :

 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)"}

I am starting the logstash by :

sudo ./logstash -f /etc/logstash/conf.d/beat.conf --config.reload.automatic

Also I have tested the config too by :

sudo ./logstash -f /etc/logstash/conf.d/beat.conf --config.test_and_exit

Test returns CONF OK

How to solve this error? Please help!

Resolved. My elasticsearch service got stopped. Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM