Parsing log files for test results

Marc Tardif marc.tardif at
Tue Dec 6 18:02:47 UTC 2011

* Andy Whitcroft <apw at> [2011-12-06 16:45 +0000]:
> On Mon, Dec 05, 2011 at 05:29:44PM -0500, Marc Tardif wrote:
> > First, I would like to consider suspending. I looked in /var/log/syslog
> > where I found strings that could be parsed to detect a successful wakeup
> > from suspend:
> > 
> >   kernel: [  137.402845] ACPI: Waking up from system sleep state S3
> > 
> > However, the problem is that syslog does not seem to contain the kernel
> > version to validate that the proposed kernel is effectively being tested.
> I would also expect to see the kernel version in syslog, prior to the
> s/r, though if the machine has been up a long time it may be rolled out:
> /var/log/syslog.6.gz:Nov 28 22:26:15 dm kernel: [    0.000000] Linux version 3.2.0-2-generic (root at gomeisa) (gcc version 4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1) ) #4~pre1 SMP Thu Nov 24 16:42:07 UTC 2011 (Ubuntu 3.2.0-2.4~pre1-generic 3.2.0-rc3)

I would appreciate having a better understanding of what prints those
lines to syslog and when they should be expected to be printed. I have
recently installed a system running Oneiric which has been rebooted a
few times, dist-upgraded and rebooted again. I still get nothing when
attempting to grep the logs for the kernel version:

  zgrep '3\.0\.0' /var/log/syslog*

Marc Tardif <marc.tardif at>
Freenode: cr3, Jabber: cr3 at
1024D/72679CAD 09A9 D871 F7C4 A18F AC08 674D 2B73 740C 7267 9CAD

More information about the kernel-team mailing list