Fix output plugin conf for mqtt

There were lots of little issues with the config file, this fixes those.

Change-Id: If313f6953c896e0e5c30147a45214b6502f8e449
This commit is contained in:
Matthew Treinish 2016-09-21 10:11:00 -04:00
parent 2249a61a17
commit 869918478f
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177

View File

@ -6,13 +6,13 @@ output {
}
<% if @enable_mqtt -%>
mqtt {
host => <%= @mqtt_hostname %>
host => "<%= @mqtt_hostname %>"
port => <%= @mqtt_port %>
topic => <%= @mqtt_topic %>
username => <%= @mqtt_username %>
password => <%= @mqtt_password %>
topic => "<%= @mqtt_topic %>"
username => "<%= @mqtt_username %>"
password => "<%= @mqtt_password %>"
ssl => true
ca_file => "/etc/logstash/mqtt-root-CA.crt"
ca_file => "/etc/logstash/mqtt-root-CA.pem.crt"
}
<% end -%>