rfc5424
rfc5424 copied to clipboard
app-name is not set correctly?
We're creating a message like this:
msg := rfc5424.Message{
Priority: rfc5424.Daemon | rfc5424.Info,
Timestamp: time.Now(),
Hostname: al.osHostname,
ProcessID: al.osPid,
AppName: "fusion",
Message: p,
}
Here, we've set AppName to "fusion". However, the remote rsyslog server receives the app-name property as "<30>1". Does this library set the app-name property?
https://www.rsyslog.com/doc/master/configuration/properties.html
FYI, the reason I ask is because I would like to filter on app-name, such as:
if $app-name == "fusion" then :omstdout: