[rsyslog] per programname logs

Jan-Frode Myklebust janfrode at tanso.net
Mon Aug 27 22:07:31 CEST 2007


I'm trying to get rsyslog to log each programname to separate logfiles,
so I have:

	$template PerAppLogs,"/var/log/rsyslog/apps/%programname%.log"
	*.* -?PerAppLogs

This seems to show a couple of problems with %programname%. It will be set
to a bit strange strings for some of the messages:

1.4.1.log:
	Aug 27 21:58:01 syslogd 1.4.1: restart.
	Aug 27 21:58:01 syslogd 1.4.1: restart.
	Aug 27 21:58:01 syslogd 1.4.1: restart.

message.log:
	Aug 27 22:02:48 last message repeated 12 times
	Aug 27 22:02:49 last message repeated 6 times
	Aug 27 22:02:49 last message repeated 92 times


Not sure who's to blame.. 


  -jf



More information about the rsyslog mailing list