Re: [rsyslog] syslogtag: only log daemon name, without the [pid]

2021-08-13 Thread David Lang via rsyslog
the...@gmx.ch> Subject: [rsyslog] syslogtag: only log daemon name, without the [pid] Hello, I have defined my own template for logging: $template long-iso,"%$NOW% %timereported:8:15% %syslogtag% %msg%\n" Which logs in following format: 2021-08-14 05:55:31 sshd[1856]: message

[rsyslog] syslogtag: only log daemon name, without the [pid]

2021-08-13 Thread Fourhundred Thecat via rsyslog
Hello, I have defined my own template for logging: $template long-iso,"%$NOW% %timereported:8:15% %syslogtag% %msg%\n" Which logs in following format: 2021-08-14 05:55:31 sshd[1856]: message How can I make the %syslogtag% to only log daemon name, without the [pid] part ? I am using