From 8de06b4b98f3e2d9f1fd0ec261780f3021122b80 Mon Sep 17 00:00:00 2001 From: Patryk Hegenberg Date: Tue, 2 Sep 2025 10:07:32 +0200 Subject: [PATCH] fix(service-monitor): fix spacing for better pattern matching --- service_monitor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service_monitor.go b/service_monitor.go index 89b9d96..88bef30 100644 --- a/service_monitor.go +++ b/service_monitor.go @@ -278,6 +278,7 @@ func parseTJMService(entry LogEntry) LogEntry { newEntry.Fields["message"] = strings.Join(info, " ") tmpInfo := strings.ReplaceAll(strings.Join(info, " "), "[ ]", "[]") + tmpInfo = strings.ReplaceAll(tmpInfo, "[ ", "[") tmpSplit := strings.Fields(tmpInfo) if len(tmpSplit) > 4 { newEntry.Fields["username"] = tmpSplit[2]