diff --git a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml index 69291c7..028ce99 100644 --- a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml +++ b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml @@ -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