[Logcheck-devel] Bug#531596: logcheck: Doesn't ignore cron-apt Fetched lines

Bob Proulx bob at proulx.com
Tue Jun 2 16:00:49 UTC 2009


Package: logcheck
Version: 1.2.69
Severity: normal

Lines from cron-apt such as this are not ignored.

  Jun  2 08:31:42 joseki cron-apt: Fetched 20.9MB in 2min25s (143kB/s)

There is a logcheck rule for cron-apt that appears is trying to match
this line.  It fails to match.

  ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Fetched [[:digit:].]+[kM]?B in ([[:digit:]]+m)?[[:digit:]]+s \([[:digit:].]+[kM]?B/s\)$

Here is a fix for the rule to match that line.

  ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ cron-apt: Fetched [[:digit:].]+[kM]?B in ([[:digit:]]+min)?[[:digit:]]+s \([[:digit:].]+[kM]?B/s\)$

Bob

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Logcheck-devel mailing list