diff --git a/roles/beats/templates/filebeat.yml.j2 b/roles/beats/templates/filebeat.yml.j2 index db724154..396917e6 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_filebeat_log_inputs['field'] }} + {{ field }}: {{ beats_filebeat_log_inputs[field] }} {% endfor %} {% endif %} {% endif %}