Hi,
Currently I have logstash 1.5.0 running successfully, with the next elasticsearch output config:
elasticsearch {
host => "host"
protocol => "http"
user => "login"
password => "password"
port => 9200
flush_size => 5000
workers => 4
manage_template => false
index => "logstash-%{+YYYY.MM.dd}"
}
I have decided to update the logstash to 2.0.0, I have updated the config to the next one:
elasticsearch {
hosts => ["host:9200"]
user => "login"
password => "password"
flush_size => 5000
workers => 4
manage_template => false
index => "logstash-%{+YYYY.MM.dd}"
}
However, when I run it, I receive the error, like it's not able to flush the records to the ES:
{:timestamp=>"2015-11-05T18:11:08.085000+0100", :message=>"Attempted to send a bulk request to Elasticsearch configured at '[\"http://host:9200/\"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :client_config=>{:hosts=>["http://host:9200/"], :ssl=>nil, :transport_options=>{:socket_timeout=>0, :request_timeout=>0, :proxy=>nil, :ssl=>{}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::Manticore, :headers=>{"Authorization"=>"Basic PASSWORDHASH=="}
My ES version is 1.7.3
.
Does logstash 2 works only with ES 2? I don't think so. So what could be a problem in my case?
Any thoughts are appreciated.
Regards,