869918478f
There were lots of little issues with the config file, this fixes those. Change-Id: If313f6953c896e0e5c30147a45214b6502f8e449
20 lines
460 B
Plaintext
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 -%>
|
|
|
|
}
|