openstack-ansible-ops/elk_metrics_6x/templates/99-kafka-output.conf.j2
Kevin Carter 57756eefe2 Add kafka output plugin to logstash
This change will allow a deployer to directly ship data from
logstash into Kafka.

Change-Id: I5de0caf270c8ced8111ac099cb91a70814f80259
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-21 13:09:28 +00:00

14 lines
305 B
Django/Jinja

output {
kafka {
{% for key, value in logstash_kafka_options.items() %}
{% if value is number %}
{{ key }} => {{ value }}
{% elif value is iterable and value is not string %}
{{ key }} => "{{ value | join(',') }}"
{% else %}
{{ key }} => "{{ value }}"
{% endif %}
{% endfor %}
}
}