forked from ansible-collection/filebeat
#1001565 针对nginx日志采集
This commit is contained in:
parent
b074dbbefa
commit
01c1711df9
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue