#1001565 针对nginx日志采集

This commit is contained in:
pengln 2021-11-08 19:27:48 +08:00
parent b074dbbefa
commit 01c1711df9
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ filebeat.inputs:
- "/data/log/nginx/access_{{ log }}.log" - "/data/log/nginx/access_{{ log }}.log"
- "/data/log/nginx/error_{{ log }}.log" - "/data/log/nginx/error_{{ log }}.log"
fields: fields:
source: {{ log }} source: {{ log | regex_replace('\*') }}
{% endfor %} {% endfor %}