On 2009-03-25 13:02, Per Jessen wrote:
Sylvester Lykkehus wrote:
Hi list,
How can i get the year included in the timestamps of log files ?
Just write the right template in /etc/syslog-ng/syslog-ng:
template("$ISODATE $HOST $MSG\n")
I would like it to look something like this: Mar 25 2009 10:40:26 SoliD syslog-ng[1801]: STATS: dropped 0
Look up the manual for syslog-ng, I'm sure there's a way to add the year like that.
/Per
Thanks Per, that gave me a pointer. I'm running 11.0 and have syslog-ng-1.6.12-76.2. There is no mention of template in syslog-ng and syslog-ng.conf man pages, but it gave me something to search on google for, which turned up this: https://lists.balabit.hu/pipermail/syslog-ng/2006-November/009510.html Meaning, i cannot define a template, but i can use it inline on each destination. Thanks again /Sylvester -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org