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

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

cluster.name: mycluster

output {
elasticsearch {
host => ""

cluster => "mycluster"

protocol => "http"


Here I found that specifying the name of the cluster in logstash.conf is

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
  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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b3b5cf28-cbdc-4f7e-987d-977d9ad75f99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.