Cleanup syslog messages
Remove leading and trailing spaces and/or newlines from syslog message field.
This commit is contained in:
parent
839ca60b0e
commit
06682c6350
|
@ -395,7 +395,7 @@ func fields(msg rfc5424.SyslogMessage, s *Syslog) map[string]interface{} {
|
||||||
}
|
}
|
||||||
|
|
||||||
if msg.Message() != nil {
|
if msg.Message() != nil {
|
||||||
flds["message"] = *msg.Message()
|
flds["message"] = strings.TrimSpace(*msg.Message())
|
||||||
}
|
}
|
||||||
|
|
||||||
if msg.StructuredData() != nil {
|
if msg.StructuredData() != nil {
|
||||||
|
|
Loading…
Reference in New Issue