# \[SOLVED\] v1.X -\> v2.3 output elasticsearch cluster name

**URL:** https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442
**Category:** Logstash
**Created:** [May 19, 2016, 1:30pm UTC](https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442 "2016-05-19T13:30:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zendel](https://avatars.discourse-cdn.com/v4/letter/z/d2c977/32.png) [@zendel](https://discuss.elastic.co/u/zendel)
#### Post date: [May 19, 2016, 1:30pm UTC](https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442/1 "2016-05-19T13:30:43Z")

</div>

Hello everyone,

I recently maj my logstash to the latest version (version 1.x to 2.3.1).

My configuration is :  
`output { stdout { codec => rubydebug } elasticsearch { cluster my_cluster_name} }`

So, i have the error :  
Unknown setting 'cluster' for elasticsearch {:level=\>:error}

I read this [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html), but i dont find how i can indicate my cluster name ?

Thank you

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 19, 2016, 2:57pm UTC](https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442/2 "2016-05-19T14:57:49Z")

</div>

Starting in Logstash 2.0 the elasticsearch output always uses HTTP (which prior to 2.0 was optional via `protocol => "http"`). When using HTTP the cluster name is irrelevant and you instead need to point to one or more cluster nodes with the `hosts` option.

---

<div class="post-metadata">

### Author: ![zendel](https://avatars.discourse-cdn.com/v4/letter/z/d2c977/32.png) [@zendel](https://discuss.elastic.co/u/zendel)
#### Post date: [May 19, 2016, 3:43pm UTC](https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442/3 "2016-05-19T15:43:26Z")

</div>

> [@magnusbaeck](#):
>
> irrelevant

OK, thank, i found my problem.

I have a older version in running... (no rpm with older version)

Now, when i made curl [http://localhost:9200/](http://localhost:9200/), the cluster name is good.

---

<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:56am UTC](https://discuss.elastic.co/t/solved-v1-x-v2-3-output-elasticsearch-cluster-name/50442/4 "2017-07-06T04:56:54Z")

</div>


