[CentOS] 5.9 logwatch yum filter broken

Fri Jan 18 12:00:20 UTC 2013
Tilman Schmidt <t.schmidt at phoenixsoftware.de>

On 18.01.2013 09:49, /me wrote:
> Looking at the script I find the line
> 
>      22    $ThisLine =~ s/^[^ ]* [^ ]* //;
> 
> which looks like its intention was to strip the timestamp from
> the logfile entry, but the DEBUG output shows it has already
> been stripped at this point.

Correction: Whatever that line tries to strip, it isn't a timestamp.

Btw, the format of /var/log/yum.log differs between CentOS 5 and 6:

- CentOS 5:
Jan 10 11:33:49 Updated: bacula-client.i386 5.2.12-6.el5

- CentOS 6:
Jan 11 03:39:39 Updated: bacula-client-5.2.12-6.el6.x86_64

On CentOS 6, the script line above would do no harm because after
stripping the timestamp there is only one space character left in
the line, so the pattern doesn't match.

-- 
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany