# Cluster setting in elasticsearch http output

**URL:** https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477
**Category:** Logstash
**Created:** [November 12, 2015, 11:54pm UTC](https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477 "2015-11-12T23:54:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wby](https://avatars.discourse-cdn.com/v4/letter/w/439d5e/32.png) [@wby](https://discuss.elastic.co/u/wby)
#### Post date: [November 12, 2015, 11:54pm UTC](https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477/1 "2015-11-12T23:54:35Z")

</div>

[Please move to logstash forum; sorry]

[https://www.elastic.co/guide/en/logstash/2.0/breaking-changes.html#\_configuration\_changes](https://www.elastic.co/guide/en/logstash/2.0/breaking-changes.html#_configuration_changes)  
says:  
The Elasticsearch output plugin configuration has the following changes:  
[...]  
New options: bind\_host, bind\_port, cluster, embedded, embedded\_http\_port, port, sniffing\_delay

This doesn't make sense, since 'cluster' was an option before, not sure why it's listed as a new option, especially since I get this error with logstash 2.0.0:  
/opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/99\_output.conf  
Unknown setting 'cluster' for elasticsearch {:level=\>:error}

In my config, I am using the http elasticsearch transport with:

````auto
  elasticsearch {
    cluster => "logs"
    hosts => ["foo:9200"]```

In any event, is there a supported way to configure what cluster to talk to, or is there simply only one possible cluster when using HTTP?

I don't see the options listed as "new" (except for sniffing_delay) above at:
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
so is it possible that they meant "obsolete" rather than "new"?
````

---

<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: [November 13, 2015, 6:38am UTC](https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477/2 "2015-11-13T06:38:07Z")

</div>

> This doesn't make sense, since 'cluster' was an option before, not sure why it's listed as a new option, [...]

Indeed, that's incorrect. `embedded` and `embedded_port` were also removed so the list appears to be a mix of additions and deletions.

> In any event, is there a supported way to configure what cluster to talk to, or is there simply only one possible cluster when using HTTP?

The latter. The host:port tuple you supply identifies the cluster. The HTTP API has no cluster parameter.

---

<div class="post-metadata">

### Author: ![dfr0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dfr0/32/6433_2.png) [@dfr0](https://discuss.elastic.co/u/dfr0)
#### Post date: [November 20, 2015, 1:51am UTC](https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477/3 "2015-11-20T01:51:08Z")

</div>

I've the same problem.

---

<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, 5:22am UTC](https://discuss.elastic.co/t/cluster-setting-in-elasticsearch-http-output/34477/4 "2017-07-06T05:22:05Z")

</div>


