View Issue Details

IDProjectCategoryView StatusLast Update
0006735CentOS-6logwatchpublic2013-11-16 15:31
Reporterzuliani 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Platformx86_64 GNU/LinuxOSCentosOS Version6.4
Product Version6.4 
Target VersionFixed in Version 
Summary0006735: logwatch service "ftpd-xferlog" is ignoring log entries for the first 9 days of every month
DescriptionDear all,

logwatch-7.3.6-49 is not parsing correctly the files for the service "ftpd-xferlog" ( /var/log/xferlog and /var/log/xferlog-YYYYMMDD{.gz} ), and is ignoring the traffic generated in the fist 9 days of every month (i.e., November 1st to November 9th)
Steps To Reproduce1) Create the following sample log file:

# cat /var/log/xferlog
Wed Oct 30 07:56:26 2013 0 123.123.123.123 141234 /mydir/mydir.file b _ i r myhost ftp 0 * c
Thu Oct 31 07:56:27 2013 0 123.123.123.123 880000 /mydir/mydir.file b _ i r myhost ftp 0 * c
Fri Nov 01 07:56:28 2013 0 123.123.123.123 999900 /mydir/mydir.file b _ i r myhost ftp 0 * c
Sat Nov 02 07:56:29 2013 0 123.123.123.123 147360 /mydir/mydir.file b _ i r myhost ftp 0 * c
Sun Nov 03 07:56:29 2013 0 123.123.123.123 164400 /mydir/mydir.file b _ i r myhost ftp 0 * c
Mon Nov 04 07:56:29 2013 0 123.123.123.123 273930 /mydir/mydir.file b _ i r myhost ftp 0 * c
Tue Nov 05 07:56:31 2013 1 123.123.123.123 380258 /mydir/mydir.file b _ i r myhost ftp 0 * c
Wed Nov 06 07:56:31 2013 0 123.123.123.123 394212 /mydir/mydir.file b _ i r myhost ftp 0 * c
Thu Nov 07 07:56:33 2013 1 123.123.123.123 277013 /mydir/mydir.file b _ i r myhost ftp 0 * c
Fri Nov 08 07:56:33 2013 0 123.123.123.123 133699 /mydir/mydir.file b _ i r myhost ftp 0 * c
Sat Nov 09 07:56:37 2013 4 123.123.123.123 980899 /mydir/mydir.file b _ i r myhost ftp 0 * c
Sun Nov 10 07:56:41 2013 4 123.123.123.123 957955 /mydir/mydir.file b _ i r myhost ftp 0 * c
Mon Nov 11 07:56:42 2013 0 123.123.123.123 376212 /mydir/mydir.file b _ i r myhost ftp 0 * c

2) Run the following commands:

a) logwatch --print --range 'Oct 31, 2013' --service ftpd-xferlog
b) logwatch --print --range 'Nov 10, 2013' --service ftpd-xferlog
c) logwatch --print --range 'Nov 05, 2013' --service ftpd-xferlog
d) logwatch --print --range 'Nov 02, 2013' --service ftpd-xferlog
e) logwatch --print --range 'between 10/31/2013 and 11/10/2013' --service ftpd-xferlog
f) logwatch --print --range 'between 11/01/2013 and 11/09/2013' --service ftpd-xferlog
g) logwatch --print --range 'between 11/1/2013 and 11/9/2013' --service ftpd-xferlog

a) and b) work correctly (880KB and 957KB);
c), d), f) and g) produces no output;
e) only show the sum of the traffic from Oct 31 and Nov 10 (1837KB), ignoring the traffic between Nov 01 and Nov 09

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-11-12 17:07 zuliani New Issue
2013-11-16 15:31 zuliani Status new => confirmed