修复排除项判断错误导致无法启动filebeat的问题 #36

Merged
pengln merged 1 commits from pengln/filebeat:master into master 2021-12-07 17:34:19 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit d7db5cc45c - Show all commits

View File

@ -9,7 +9,7 @@ filebeat.config.inputs:
filebeat.inputs: filebeat.inputs:
- type: log - type: log
paths: {{ logs[log_type]['paths'] }} 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'] }} exclude_files: {{ logs[log_type]['exclude_files'] }}
{% endif -%} {% endif -%}
harvester_buffer_size: 40960 harvester_buffer_size: 40960