forked from ansible-collection/filebeat
Merge pull request '修复日志路径错误的问题' (#17) from pengln/filebeat:master into master
Reviewed-on: https://app.amonstack.com:10301/gitea/ansible-collection/filebeat/pulls/17
This commit is contained in:
commit
4cd81cd33d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue