[syslog-ng] [Bug 85] New: wrong $_YEAR after logrotate
bugzilla at bugzilla.balabit.com
bugzilla at bugzilla.balabit.com
Tue Jun 8 13:41:27 CEST 2010
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 at balabit.hu
ReportedBy: cedric.jeanneret at 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 at 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.
More information about the syslog-ng
mailing list