From 01c1711df92804871f597648ee49cf3ae31bc085 Mon Sep 17 00:00:00 2001 From: pengln Date: Mon, 8 Nov 2021 19:27:48 +0800 Subject: [PATCH] =?UTF-8?q?#1001565=20=E9=92=88=E5=AF=B9nginx=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E9=87=87=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filebeat/templates/filebeat-gateway-nginx-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml index bdee5c9..bfaddfd 100644 --- a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml +++ b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml @@ -7,7 +7,7 @@ filebeat.inputs: - "/data/log/nginx/access_{{ log }}.log" - "/data/log/nginx/error_{{ log }}.log" fields: - source: {{ log }} + source: {{ log | regex_replace('\*') }} {% endfor %}