Elasticsearch output plugin throws error on sniffing => true as it makes the pool to empty

Product : logstash-5.0.0-beta1

With the folowing output configuration I get error when start a pipeline


output {
elasticsearch {
hosts => ["x.x.x.x:9200","y.y.y.y:9200"]
sniffing => true
}
}

when run as bin/logstash -f pipeline.conf I get below error. It makes the existing pool to empty.

[2016-10-03T15:32:44,440][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2016-10-03T15:32:48,478][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>["http://x.x.x.x:9200", "http://y.y.y.y:9200"], :added=>[]}}

Workaround : remove the sniffing setting and add all your client nodes to hosts array.

1 Like

I had the same issue 5.0 GA. It appears to remove the URL from the pool. There must be a bug somewhere. Removing the sniffing fixes it for now.