diff --git a/playbooks/roles/filebeat/templates/filebeat.yml b/playbooks/roles/filebeat/templates/filebeat.yml index d60addd..1c183b7 100644 --- a/playbooks/roles/filebeat/templates/filebeat.yml +++ b/playbooks/roles/filebeat/templates/filebeat.yml @@ -9,7 +9,7 @@ filebeat.config.inputs: filebeat.inputs: - type: log paths: {{ logs[log_type]['paths'] }} - {% if logs[log_type]['exclude_files'] -%} + {% if "exclude_files" in logs[log_type] -%} exclude_files: {{ logs[log_type]['exclude_files'] }} {% endif -%} harvester_buffer_size: 40960