From eb2fc018370195d5f6ad1feff50ee0e7a549afc4 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sun, 27 Jul 2025 16:51:09 -0400 Subject: [PATCH] Mounting SWAG NGINX logs to Signoz OTEL Collector. --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 33b11b61..6381f1b5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5341,6 +5341,8 @@ services: signoz-app: condition: service_healthy environment: + NGINX_ACCESS_LOG_FILE: /swag/log/nginx/access.log + NGINX_ERROR_LOG_FILE: /swag/log/nginx/error.log OTEL_RESOURCE_ATTRIBUTES: host.name=signoz-host,os.type=linux LOW_CARDINAL_EXCEPTION_GROUPING: false image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.128.2} @@ -5352,6 +5354,8 @@ services: volumes: - ${DOCKER_VOLUME_CONFIG}/signoz/common/otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml - ${DOCKER_VOLUME_CONFIG}/signoz/common/otel/otel-collector-opamp-config.yaml:/etc/manager-config.yaml + - ${DOCKER_VOLUME_CONFIG}/swag/log/nginx/access.log:/swag/log/nginx/access.log:ro + - ${DOCKER_VOLUME_CONFIG}/swag/log/nginx/error.log:/swag/log/nginx/error.log:ro signoz-schema-migrator-async: <<: *signoz-db-depend image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.128.2}