Parsing log files for test results

Andy Whitcroft apw at canonical.com
Tue Dec 6 22:41:56 UTC 2011


On Tue, Dec 06, 2011 at 01:02:47PM -0500, Marc Tardif wrote:
> * Andy Whitcroft <apw at canonical.com> [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.
> [snip]
> > 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*

Hmm I normally look for 'Linux ' when greping for these.  The linux
line is generated by the kernel itself and pulled out of the kernel by
syslogd.

-apw




More information about the kernel-team mailing list