From 65a5016c77e3cec31133b66f90821e3d6d9b0eeb Mon Sep 17 00:00:00 2001 From: pengln Date: Tue, 7 Dec 2021 10:14:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20pipeline=20=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=BC=95=E7=94=A8=E9=94=99=E8=AF=AF=E7=9A=84bug?= 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 b78f494..482ca7c 100644 --- a/playbooks/roles/filebeat/templates/filebeat.yml +++ b/playbooks/roles/filebeat/templates/filebeat.yml @@ -43,7 +43,7 @@ output.elasticsearch: index: "{{ logs[log_type]['index_prefix'] }}-{{ instance_name }}-%{[sublog]}-%{+yyyy.MM.dd}" {% endif -%} {% if 'pipeline' in logs[log_type] and logs[log_type]['pipeline'] -%} - pipeline: "logs[log_type]['pipeline']" + pipeline: "{{ logs[log_type]['pipeline'] }}" {% endif -%} {% if 'es_user' in logs[log_type] and 'es_passwd' in logs[log_type] -%} username: {{ logs[log_type]['es_user'] | default('') }}