#1001565 针对nginx日志采集 #3

Merged
pengln merged 1 commits from pengln/filebeat:master into master 2021-11-08 19:31:46 +08:00
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 %}