]> git.openstreetmap.org Git - chef.git/commitdiff
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 f6c207a61d09de6360811b8a5a3b1b8f2c93a6e1..68c9fd9210d9b589c5f4a5b2b01b1b2714a3126e 100644 (file)
@@ -24,5 +24,6 @@ filter {
 output {
   elasticsearch {
     host => [ "127.0.0.1" ]
 output {
   elasticsearch {
     host => [ "127.0.0.1" ]
+    cluster => "<%= node[:elasticsearch][:cluster][:name] %>"
   }
 }
   }
 }