Parsing log files for test results

Andy Whitcroft apw at canonical.com
Wed Dec 7 16:11:20 UTC 2011


On Wed, Dec 07, 2011 at 09:32:07AM -0500, Marc Tardif wrote:

> When I grep for 'Linux', I get lines like this:
> 
>   # zgrep Linux /var/log/syslog*
>   Dec  6 13:00:54 200910-4253 kernel: [    4.024835] Linux agpgart
>   interface v0.103

I get the below, note teh ones at timestamp 0.000000 ... each is a boot
signature.

$ zgrep 'Linux ' /var/log/syslog*
/var/log/syslog.7.gz:Nov 26 17:36:58 localhost kernel: [    0.000000] Linux version 3.2.0-2-generic-pae (root at gomeisa) (gcc version 4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1) ) #4~pre1 SMP Thu Nov 24 16:33:40 UTC 2011 (Ubuntu 3.2.0-2.4~pre1-generic-pae 3.2.0-rc3)
/var/log/syslog.7.gz:Nov 26 17:36:58 localhost kernel: [    1.365195] Linux agpgart interface v0.103
/var/log/syslog.7.gz:Nov 26 17:36:59 localhost kernel: [   12.547635] Linux video capture interface: v2.00
/var/log/syslog.7.gz:Nov 27 15:02:45 localhost kernel: [    0.000000] Linux version 3.2.0-2-generic-pae (root at gomeisa) (gcc version 4.6.2 (Ubuntu/Linaro 4.6.2-2ubuntu1) ) #4~pre1 SMP Thu Nov 24 16:33:40 UTC 2011 (Ubuntu 3.2.0-2.4~pre1-generic-pae 3.2.0-rc3)
/var/log/syslog.7.gz:Nov 27 15:02:45 localhost kernel: [    1.361170] Linux agpgart interface v0.103
/var/log/syslog.7.gz:Nov 27 15:02:46 localhost kernel: [   12.515165] Linux video capture interface: v2.00

-apw




More information about the kernel-team mailing list