修复日志路径错误的问题 #17
|
@ -10,7 +10,8 @@ filebeat.inputs:
|
||||||
{% for log in gwlogs %}
|
{% for log in gwlogs %}
|
||||||
- type: log
|
- type: log
|
||||||
paths:
|
paths:
|
||||||
- "{{ log }}"
|
- "/data/log/nginx/access_{{ log }}.log"
|
||||||
|
- "/data/log/nginx/error_{{ log }}.log"
|
||||||
fields:
|
fields:
|
||||||
source: {{ log | regex_replace('\*') }}
|
source: {{ log | regex_replace('\*') }}
|
||||||
harvester_buffer_size: 1638400
|
harvester_buffer_size: 1638400
|
||||||
|
|
Loading…
Reference in New Issue