fix(service-monitor): fix spacing for better pattern matching

This commit is contained in:
Patryk Hegenberg 2025-09-02 10:07:32 +02:00
parent a79087886f
commit 8de06b4b98

View file

@ -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]