(libol-0.2.23, syslog-ng 1.4.14) In my configuration, I have a destination defined like this: destination d_app { file("/var/log/app/$YEAR$MONTH$DAY"); }; This is a wonderful feature, as it gives me a sort of "automatic rotation" of logfiles. However, there seems to be a bug that occurs on the first of every month. If I look in the /var/log/app directory, I'll see files like: 20010201 20020101 20020102 20020103 [...] 20020129 20020130 20020131 20020201 20020202 Note that first file, stamped with 2001 instead of 2002. It actually contains entries that should have gone into 20020201. The entries in 20010201 all occur within the first hour of the day. It's as if the value of $YEAR is off by one during the first hour of the first day of a month. I tried searching the archives, no luck. Is this a know issue? Should I go to the 1.5 branch? -- Alex Howansky Wankwood Associates http://www.wankwood.com/
On Sat, Feb 02, 2002 at 04:47:25PM -0600, Alex Howansky wrote:
(libol-0.2.23, syslog-ng 1.4.14)
In my configuration, I have a destination defined like this:
destination d_app { file("/var/log/app/$YEAR$MONTH$DAY"); };
This is a wonderful feature, as it gives me a sort of "automatic rotation" of logfiles. However, there seems to be a bug that occurs on the first of every month. If I look in the /var/log/app directory, I'll see files like:
20010201 20020101 20020102 20020103 [...]
I'm seeing the same thing, a little different format: file("/logs/hosts/$HOST/$YEAR-$MONTH/$DAY/$FACILITY" perm(0644)); noc% ls -l total 8 drwxr-xr-x 3 root wheel 512 Dec 31 23:00 2001-01 drwxr-xr-x 14 root wheel 512 Dec 30 23:00 2001-12 drwxr-xr-x 33 root wheel 512 Jan 30 23:00 2002-01 drwxr-xr-x 6 root wheel 512 Feb 3 23:00 2002-02 noc% ls -l 2001-01 total 2 drwxr-xr-x 2 root wheel 512 Dec 31 23:00 01 The first message on 2001-01/01 was dated Jan 1 00:00:00 and the last was dated Jan 1 00:59:59. (It's a high volume generator.. 6225 messages in that hour). The file in its correct place - 2002-01/01 - started at 01:00:00. I just kind of let it go thinking that it was one thing but apparently i'm not the only one :) Box: FreeBSD 4.4-R, syslog-ng 1.4.14, libol 0.2.23 TIA. jamie -- jamie rishaw <jamie@playboy.com> sr. wan/unix engineer/ninja // playboy enterprises inc. [opinions stated are mine, and are not necessarily those of the bunny] "UNIX was not designed to stop people from doing stupid things, because that would also stop them from doing clever things." -- Doug Gwyn
participants (2)
-
Alex Howansky
-
jamie rishaw