[syslog-ng]$YEAR/$MONTH/$DAY generates always 2002/12/31

Piotr Woliński syslog-ng@lists.balabit.hu
Tue, 02 Dec 2003 12:36:05 +0100


Hello,

I have PLD Linux kernel 2.4.20 and syslog-ng-1.6.0-0.rc3.2
I put into into syslog-ng.conf lines (for test purpose):

source net      { udp(); };
destination hosts {
     file("/var/log/hosts/$HOST/$YEAR/$MONTH/$DAY/$FACILITY"
         owner(root) group(root) perm(0600) dir_perm(0700)
     create_dirs(yes)); };
log {source(net); destination(hosts); };


Now i can see directiories like that:
/var/log/hosts/localhost/2003/2003/12/01
/var/log/hosts/localhost/2003/2003/12/02
that's OK.

But also:
/var/log/hosts/localhost/2002/12/31

Inside that dir files:
auth, authpriv, local7.

Dates inside above 3 files are OK.

Anyone could help me?
What's going on?


Piotr Wolinski