修复日志路径错误的问题 #17

Merged
pengln merged 1 commits from pengln/filebeat:master into master 2021-11-16 10:43:46 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 0d5e84e2e5 - Show all commits

View File

@ -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