diff --git a/roles/beats/templates/filebeat.yml.j2 b/roles/beats/templates/filebeat.yml.j2 index 5167b442..d6924bd0 100644 --- a/roles/beats/templates/filebeat.yml.j2 +++ b/roles/beats/templates/filebeat.yml.j2 @@ -17,7 +17,7 @@ filebeat.inputs: {% endif %} {% if beats_filebeat_log_inputs[input].fields is defined %} {% for field in beats_filebeat_log_inputs[input].fields %} - {{ field }}: beats_fields['field'] + {{ field }}: {{ beats_fields['field'] }} {% endfor %} {% endif %} {% endif %}