From 381d25c11bf950824ea5ce24d1e25cb4a8b5a49f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 25 Jul 2025 11:05:28 +0800 Subject: [PATCH 1/3] chore(logging): update logPathPattern to /var/log/pods/*/*/*.log for k8s standard log collection --- .../templates/central-storage/opentelemetry.yaml | 4 ++-- freeleaps/helm-pkg/centralStorage/values.alpha.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml b/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml index ba1bcf9b..4c7b5d4a 100644 --- a/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml +++ b/freeleaps/helm-pkg/centralStorage/templates/central-storage/opentelemetry.yaml @@ -47,8 +47,8 @@ spec: include: - {{ .Values.logIngest.logPathPattern }} start_at: end - include_file_path: false - include_file_name: false + include_file_path: true + include_file_name: true operators: - type: json_parser parse_from: body diff --git a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml index 4de1f39b..5d870b0c 100644 --- a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml +++ b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml @@ -7,7 +7,7 @@ dashboard: logIngest: enabled: true lokiEndpoint: http://loki-gateway.freeleaps-logging-system - logPathPattern: /app/log/central_storage/*.log + logPathPattern: /var/log/pods/*/*/*.log logPath: /app/log/central_storage centralStorage: replicas: 1 From 07f7d220044d66ffeaa8360d87e9af92557d16eb Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 25 Jul 2025 14:28:15 +0800 Subject: [PATCH 2/3] fix(logging): revert logPathPattern to /app/log/central_storage/*.log for sidecar filelog collection --- freeleaps/helm-pkg/centralStorage/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml index 5d870b0c..4de1f39b 100644 --- a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml +++ b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml @@ -7,7 +7,7 @@ dashboard: logIngest: enabled: true lokiEndpoint: http://loki-gateway.freeleaps-logging-system - logPathPattern: /var/log/pods/*/*/*.log + logPathPattern: /app/log/central_storage/*.log logPath: /app/log/central_storage centralStorage: replicas: 1 From 1aace1577d4077e69f8d6f634e110c58a310db5f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 25 Jul 2025 14:32:20 +0800 Subject: [PATCH 3/3] fix(logging): set logPathPattern to /app/log/central_storage/*.log for sidecar filelog --- freeleaps/helm-pkg/centralStorage/values.alpha.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml index 5d870b0c..4de1f39b 100644 --- a/freeleaps/helm-pkg/centralStorage/values.alpha.yaml +++ b/freeleaps/helm-pkg/centralStorage/values.alpha.yaml @@ -7,7 +7,7 @@ dashboard: logIngest: enabled: true lokiEndpoint: http://loki-gateway.freeleaps-logging-system - logPathPattern: /var/log/pods/*/*/*.log + logPathPattern: /app/log/central_storage/*.log logPath: /app/log/central_storage centralStorage: replicas: 1