From 444ac0b25eeadcaacf61504ddaabac5bc3d7b447 Mon Sep 17 00:00:00 2001
From: sanderegg <35365065+sanderegg@users.noreply.github.com>
Date: Tue, 26 Aug 2025 14:00:59 +0200
Subject: [PATCH 1/2] remove / in front
---
services/logging/fluentd/fluent.conf | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/services/logging/fluentd/fluent.conf b/services/logging/fluentd/fluent.conf
index e562e59c..bac80778 100644
--- a/services/logging/fluentd/fluent.conf
+++ b/services/logging/fluentd/fluent.conf
@@ -42,6 +42,16 @@
+# Clean container names (Ruby needed)
+
+ @type record_transformer
+ enable_ruby true
+
+ container_name ${record["container_name"] ? record["container_name"].sub(/^\//, '') : record["container_name"]}
+
+
+
+
# Output to both Graylog (GELF) and Loki
@type copy
From 3d6d69ed7080c49de64ce6b2876c0c7a89a15160 Mon Sep 17 00:00:00 2001
From: sanderegg <35365065+sanderegg@users.noreply.github.com>
Date: Tue, 26 Aug 2025 14:06:40 +0200
Subject: [PATCH 2/2] @YuryHrytsuk review: need more notes
---
services/logging/fluentd/fluent.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/services/logging/fluentd/fluent.conf b/services/logging/fluentd/fluent.conf
index bac80778..fd6b1350 100644
--- a/services/logging/fluentd/fluent.conf
+++ b/services/logging/fluentd/fluent.conf
@@ -42,7 +42,7 @@
-# Clean container names (Ruby needed)
+# Clean container names (Ruby needed) by removing leading slashes
@type record_transformer
enable_ruby true