From d7db5cc45cdfe65fa355bbd6bbb51e7d26e3d552 Mon Sep 17 00:00:00 2001 From: pengln Date: Tue, 7 Dec 2021 17:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=92=E9=99=A4=E9=A1=B9?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=90=AF=E5=8A=A8filebeat=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/templates/filebeat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.1