system-config/modules/openstack_project/templates/logstash/output.conf.erb
Matthew Treinish 869918478f
Fix output plugin conf for mqtt
There were lots of little issues with the config file, this fixes those.

Change-Id: If313f6953c896e0e5c30147a45214b6502f8e449
2016-09-21 10:11:00 -04:00

20 lines
460 B
Plaintext

output {
elasticsearch {
hosts => <%= @elasticsearch_nodes.map { |node| node + ":9200" }.inspect %>
manage_template => false
flush_size => 1024
}
<% if @enable_mqtt -%>
mqtt {
host => "<%= @mqtt_hostname %>"
port => <%= @mqtt_port %>
topic => "<%= @mqtt_topic %>"
username => "<%= @mqtt_username %>"
password => "<%= @mqtt_password %>"
ssl => true
ca_file => "/etc/logstash/mqtt-root-CA.pem.crt"
}
<% end -%>
}