Merge pull request '#1001565 针对nginx日志采集' (#3) from pengln/filebeat:master into master

Reviewed-on: https://app.amonstack.com:10301/gitea/ansible-collection/filebeat/pulls/3
This commit is contained in:
pengln 2021-11-08 19:31:46 +08:00
commit 80ce44f981
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/error_{{ log }}.log"
fields:
source: {{ log }}
source: {{ log | regex_replace('\*') }}
{% endfor %}