Logstash 2.0.0 vs elasticsearch

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,

Still actual, could it be I missed something in the configuration?

Remove the port if its default

hosts => ["host"]

Are you running both on the same host ?

no, the host is not "localhost" it's custom one

I Believe you can access from one host to another to 9200 ? can you resolve the host ?

Well, the issue is quite old. So I can't reproduce it right now.

But yes, I was able to access the host, because the host is the same as in the Logstash 1.* configuration.

I don't know how the things are situated right now, maybe something was changed.

Regards,