Re: 5.9 logwatch yum filter broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux