rfc5424 icon indicating copy to clipboard operation
rfc5424 copied to clipboard

app-name is not set correctly?

Open NickMRamirez opened this issue 3 years ago • 0 comments

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:

NickMRamirez avatar Jun 28 '21 23:06 NickMRamirez