Fwd: logwatch: make services/kernel work with PRINTK_TIME=y
"Kirk Bauer" <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
---------- Forwarded message ---------- From: Florian Tham <[email protected]> Date: Jan 13, 2008 12:20 PM Subject: logwatch: make services/kernel work with PRINTK_TIME=y To: [email protected] Hi, if a kernel is compiled with CONFIG_PRINTK_TIME=y, the services/kernel script breaks. It does not accumulate otherwise identical lines any more, because they always differ by the prepended timestamp. The attached patch fixes this problem. Logwatch version: 7.3.6 System: Debian testing Best regards, Florian -- Kirk Bauer <[email protected]> http://linux.kaybee.org | www.logwatch.org Author, Automating UNIX & Linux Administration _______________________________________________ Logwatch-Devel mailing list [email protected] http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
kernel.patch
(text/x-diff, 331 B)
--- old/services/kernel 2007-05-29 23:19:08.000000000 +0200
+++ new/services/kernel 2008-01-13 19:15:03.000000000 +0100
@@ -45,6 +45,8 @@
chomp($ThisLine);
next if ($ThisLine eq '');
+ $ThisLine =~ s/^\[[ \d\.]+\] //;
+
if (
# filter out audit messages - these should be parsed by the audit
# service