# Old article about JDBC is outdated

**URL:** <https://discuss.elastic.co/t/old-article-about-jdbc-is-outdated/82510>\
**Category:** Meta Elastic\
**Created:** [April 16, 2017, 4:12pm UTC](https://discuss.elastic.co/t/old-article-about-jdbc-is-outdated/82510 "2017-04-16T16:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsouf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gsouf/32/17405_2.png) [@gsouf](https://discuss.elastic.co/u/gsouf)\
**Post date:** [April 16, 2017, 4:12pm UTC](https://discuss.elastic.co/t/old-article-about-jdbc-is-outdated/82510/1 "2017-04-16T16:12:29Z")

</div>

Hi,

New to elasticsearch I was reading this article:

> **[INSERT INTO LOGSTASH SELECT DATA FROM DATABASE
	  	 | Elastic](https://www.elastic.co/blog/logstash-jdbc-input-plugin)**
>
> Ever want to search your database entities from Elasticsearch? Now you can use Logstash to do just that! In this blog we introduce the JDBC input, which has been created to import data ...

And it seems it is oudated now. I had to replace this

```
output {
    elasticsearch {
        protocol => http
        index => "contacts"
        document_type => "contact"
        document_id => "%{uid}"
        host => "ES_NODE_HOST"
    }
}

```

with this:

```
output {
    elasticsearch {
        index => "contacts"
        document_type => "contact"
        document_id => "%{uid}"
        hosts => ["ES_NODE_HOST"]
    }
}

```

(removed "protocol" and replaced "host" with "hosts")

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 17, 2017, 4:23am UTC](https://discuss.elastic.co/t/old-article-about-jdbc-is-outdated/82510/2 "2017-04-17T04:23:52Z")

</div>

Thanks for the feedback!

---

<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, 1:46pm UTC](https://discuss.elastic.co/t/old-article-about-jdbc-is-outdated/82510/3 "2017-07-06T13:46:01Z")

</div>


