# Logstash 2.0.0 vs elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899>\
**Category:** Logstash\
**Created:** [November 5, 2015, 5:26pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899 "2015-11-05T17:26:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PavelPolyakov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavelpolyakov/32/44810_2.png) [@PavelPolyakov](https://discuss.elastic.co/u/PavelPolyakov)\
**Post date:** [November 5, 2015, 5:26pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/1 "2015-11-05T17:26:29Z")

</div>

Hi,

Currently I have logstash 1.5.0 running successfully, with the next elasticsearch output config:

```auto
        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:

```auto
        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:

```auto
{: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,

---

<div class="post-metadata">

**Author:** ![PavelPolyakov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavelpolyakov/32/44810_2.png) [@PavelPolyakov](https://discuss.elastic.co/u/PavelPolyakov)\
**Post date:** [November 6, 2015, 9:59am UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/2 "2015-11-06T09:59:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![m0tek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m0tek/32/9656_2.png) [@m0tek](https://discuss.elastic.co/u/m0tek)\
**Post date:** [May 7, 2016, 9:40pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/3 "2016-05-07T21:40:21Z")

</div>

Remove the port if its default

```
hosts => ["host"]

```

Are you running both on the same host ?

---

<div class="post-metadata">

**Author:** ![PavelPolyakov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavelpolyakov/32/44810_2.png) [@PavelPolyakov](https://discuss.elastic.co/u/PavelPolyakov)\
**Post date:** [May 8, 2016, 10:58am UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/4 "2016-05-08T10:58:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![m0tek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m0tek/32/9656_2.png) [@m0tek](https://discuss.elastic.co/u/m0tek)\
**Post date:** [May 9, 2016, 8:55am UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/5 "2016-05-09T08:55:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PavelPolyakov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavelpolyakov/32/44810_2.png) [@PavelPolyakov](https://discuss.elastic.co/u/PavelPolyakov)\
**Post date:** [May 9, 2016, 9:46am UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/6 "2016-05-09T09:46:32Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:58am UTC](https://discuss.elastic.co/t/logstash-2-0-0-vs-elasticsearch/33899/7 "2017-07-06T04:58:35Z")

</div>


