diff --git a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml index bdee5c9..bfaddfd 100644 --- a/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml +++ b/playbooks/roles/filebeat/templates/filebeat-gateway-nginx-template.yml @@ -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 %}