[Bug 85] New: wrong $_YEAR after logrotate
https://bugzilla.balabit.com/show_bug.cgi?id=85 Summary: wrong $_YEAR after logrotate Product: syslog-ng Version: 2.0.x Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: cedric.jeanneret@camptocamp.com Type of the Report: --- Estimated Hours: 0.0 Hello, We're using syslog-ng on debian lenny. We use macro like this : destination df_haproxy { file("/srv/syslog/archive/haproxy/$S_YEAR-$S_MONTH-$S_DAY-haproxy.log" create_dirs(yes) group(toto) ); }; We see there's an error when date changes, syslog recreate a new file with the wrong year (i.e. one year too old...) This happens each 1st of month: -rw-r----- 1 root toto 15782746 2010-05-31 23:59 2009-06-01-haproxy.log -rw-r----- 1 root toto 1756029229 2010-06-01 23:39 2010-06-01-haproxy.log More over, syslog-ng seems to use the wrong file for about 20 minutes, then "see" it's the wrong one, and create the good one just later... As said, this behavior is seen only on the 1st of each month... It's really strange. I have to confess, I really don't know if it's a problem for debian, or upstream. Here are informations about version and package : apt-cache show syslog-ng Package: syslog-ng Priority: extra Section: admin Installed-Size: 448 Maintainer: SZALAY Attila <sasa@debian.org> Architecture: amd64 Version: 2.0.9-4.1 If you think it's a debian problem, let me know so that I'll open a bug on debian's tracker. Thank you. Best regards, C. Jeanneret -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=85 --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2010-06-09 08:48:42 --- this has been fixed in later versions. can you try to use a 3.x package? 3.1.1 is available in sid, but you could perhaps try the precompiled binaries from our website. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=85 Cédric Jeanneret <cedric.jeanneret@camptocamp.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution| |FIXED Status|NEW |RESOLVED --- Comment #2 from Cédric Jeanneret <cedric.jeanneret@camptocamp.com> 2010-06-09 08:52:35 --- Oh... oook. Well, we'll have a look, as it's on a production server, we have to backport the package I guess. I guess we can thus close this bug. Thank you for the quick answer. Best regards, C. Jeanneret -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com