# What is the difference between setting or not cluster-name in elasticsearch output?

**URL:** https://discuss.elastic.co/t/what-is-the-difference-between-setting-or-not-cluster-name-in-elasticsearch-output/22043
**Category:** Elasticsearch
**Created:** [February 9, 2015, 11:05am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-setting-or-not-cluster-name-in-elasticsearch-output/22043 "2015-02-09T11:05:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Federica\_Oltolina](https://avatars.discourse-cdn.com/v4/letter/f/4491bb/32.png) [@Federica\_Oltolina](https://discuss.elastic.co/u/Federica_Oltolina)
#### Post date: [February 9, 2015, 11:05am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-setting-or-not-cluster-name-in-elasticsearch-output/22043/1 "2015-02-09T11:05:02Z")

</div>

Hello,  
I have logstash flushing in an elasticsearch cluster named "mycluster", so  
I configured output "elasticsearch" as follows:

_elasticsearch.yml:_  
cluster.name: mycluster  
...

_logstash.conf_  
output {  
elasticsearch {  
host =\> "10.10.10.10"

# cluster =\> "mycluster"

```
protocol => "http"
}

```

}

Here I found that specifying the name of the cluster in logstash.conf is  
optional  
[http://logstash.net/docs/1.4.2/outputs/elasticsearch#cluster](http://logstash.net/docs/1.4.2/outputs/elasticsearch#cluster)

I made a test commenting cluster name in logstash.conf and everything seems  
working properly

I would like to know:

1. what would be logstash behaviour in case more than one cluster exists on  
same server?
2. what is the difference between specifying or not cluster name in  
logstash.conf?
3. in general do we have some benefits specifying cluster name even if its  
not required?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b3b5cf28-cbdc-4f7e-987d-977d9ad75f99%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b3b5cf28-cbdc-4f7e-987d-977d9ad75f99%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:34am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-setting-or-not-cluster-name-in-elasticsearch-output/22043/2 "2017-07-06T00:34:10Z")

</div>


