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]