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)"},
就一直拒绝, 还需要配置什么东西才会,访问其他两个节点么,不太明白,求大佬指教
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)"},
就一直拒绝, 还需要配置什么东西才会,访问其他两个节点么,不太明白,求大佬指教
1 个回复
bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127
赞同来自: