要不要也来分享分享一下啊

elasticsearch.hosts 第一个配置节点挂掉后,一直提连接拒绝,不去访问其他节点

Logstash | 作者 S0Easy | 发布于2019年05月28日 | 阅读数:6520

input {
        stdin { }
}

output {
        stdout {
                codec => rubydebug {}
        }
        elasticsearch {
                hosts=>["es-01:9200", "es-02:9200", "es-03:9200"]
        }
}

 
上面是logstash-test.conf的配置。 hosts 指定了3个,故意关掉es-01的 elasticsearch
[WARN ] 2019-05-28 09:04:09.739 [Ruby-0-Thread-4: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://es-01:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://es-01:9200/][Manticore::SocketException] 拒绝连接 (Connection refused)"}
[WARN ] 2019-05-28 09:04:14.748 [Ruby-0-Thread-4: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://es-01:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://es-01:9200/][Manticore::SocketException] 拒绝连接 (Connection refused)"},
 
就一直拒绝, 还需要配置什么东西才会,访问其他两个节点么,不太明白,求大佬指教
 
 
 
                                         
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

配置一下healthcheck_path https://www.elastic.co/guide/e ... ffing

要回复问题请先登录注册