From 0d5e84e2e57a42635d8ea7e52ce9bfe68c2d1061 Mon Sep 17 00:00:00 2001 From: pengln Date: Tue, 16 Nov 2021 10:43:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filebeat/templates/filebeat-gateway-nginx-template.yml | 3 ++- 1 file changed, 2 insertions(+), 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 69291c7..028ce99 100644 --- a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml +++ b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml @@ -10,7 +10,8 @@ filebeat.inputs: {% for log in gwlogs %} - type: log paths: - - "{{ log }}" + - "/data/log/nginx/access_{{ log }}.log" + - "/data/log/nginx/error_{{ log }}.log" fields: source: {{ log | regex_replace('\*') }} harvester_buffer_size: 1638400 -- 2.40.1