Set the elasticsearch cluster name for logstash
authorTom Hughes <tom@compton.nu>
Fri, 24 Jul 2015 18:08:16 +0000 (19:08 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 24 Jul 2015 18:08:16 +0000 (19:08 +0100)
cookbooks/logstash/templates/default/logstash.conf.erb

index f6c207a..68c9fd9 100644 (file)
@@ -24,5 +24,6 @@ filter {
 output {
   elasticsearch {
     host => [ "127.0.0.1" ]
+    cluster => "<%= node[:elasticsearch][:cluster][:name] %>"
   }
 }