I have server that is migrated to rocky 8 from centos 7. We are using rsyslog withing the server so get logs is a path. The template was working fine in centos 7 and stopped working in rocky 8
I’m not sure why your %syslogtag% portion isn’t working exactly. I haven’t used the legacy format in a long time, so it’s not clear where the issue may be, whether it’s client or server side of rsyslog, and I don’t know if using %programname% would maybe help. I would try using that instead and see if that maybe helps.
As an aside, what I would suggest though is to move to the advanced template format, as a lot of what we’re used to from EL7 and older is considered obsolete in rsyslog.
Here is an example. Below I’m using the advanced format with template, ruleset, and input. I also use programname instead of syslogtag mainly because it parses syslogtag and makes it show up more cleanly.
Well, I may be completely wrong here, but your quotes look weird to me. Like those forced by M$ in their ‘word’ text editor. I see in your post: ”
and I think the correct syntax is: "