From fbc48f3ab6d8263ff17daa36aa0e32fafd0b96ab Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 19 Apr 2019 13:06:31 +0200
Subject: [PATCH] Bug fix

---
 templates/td-agent.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/td-agent.conf b/templates/td-agent.conf
index 494b7c2..5445cf3 100644
--- a/templates/td-agent.conf
+++ b/templates/td-agent.conf
@@ -245,6 +245,7 @@
 {% for host in groups.all %}
 
 {% for appl in hostvars[host].fluentd_applications|default([]) %}
+{% if appl.type|default(false) %}
 <match {{ appl.index }}>
   @type {{ appl.plugin|default('elasticsearch') }}
   host 127.0.0.1
@@ -265,6 +266,7 @@
     flush_at_shutdown true
   </buffer>
 </match>
+{% endif %}
 {% endfor %}
 {% endfor %}
 
-- 
GitLab