From 19adb4e044e8aebb475509f7b81916eeb777cc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com> Date: Wed, 26 Feb 2025 17:09:29 +0100 Subject: [PATCH] fix: specify log file path of odoo container without userns remap --- templates/filebeat.yml.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/filebeat.yml.j2 b/templates/filebeat.yml.j2 index cea2d1c..1885626 100644 --- a/templates/filebeat.yml.j2 +++ b/templates/filebeat.yml.j2 @@ -17,13 +17,14 @@ filebeat.autodiscover: providers: - type: docker hints.enabled: true -{% if docker_userns_remap %} hints.default_config: type: container paths: +{% if docker_userns_remap %} - /var/lib/docker/{{ dockremap_subuid | default("*") }}.{{ dockremap_subgid | default("*") }}/containers/${data.container.id}/*-json.log +{% else %} + - /var/lib/docker/containers/${data.container.id}/*-json.log {% endif %} - {% endif %} filebeat.inputs: -- GitLab