diff --git a/templates/td-agent.conf b/templates/td-agent.conf index 494b7c2338477f39d81d744babfdc93a9540133f..5445cf392b3096c7e5800587604b2d906d135735 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 %}