Skip to content

Commit 7de90da

Browse files
committed
Fix: Leading slash in fluentd graylog exporte logs
1 parent 2d0c747 commit 7de90da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/logging/fluentd/fluent.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
hostname "#{Socket.gethostname}"
4040
fluentd_hostname "#{ENV['FLUENTD_HOSTNAME']}"
4141
tag ${tag}
42+
container_name ${record["container_name"] && record["container_name"].start_with?("/") ? record["container_name"][1..-1] : record["container_name"]}
43+
log_service ${record["log_service"] && record["log_service"].start_with?("/") ? record["log_service"][1..-1] : record["log_service"]}
4244
</record>
4345
</filter>
4446

0 commit comments

Comments
 (0)