Hi everyone. I just wondered what's the difference between /var/log/dmesg, and /var/log/messages? Why do we have 2 log files that are similar? Kind Regards, Keith Roberts ----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
dmesg is everything sent from the kernel for logging (ie. the historical content of the dmesg(8) command). messages is basically a syslog fall-through (a bit like /var/log/syslog) On 21/01/2011, at 7:02 AM, Keith Roberts wrote:> Hi everyone. > > I just wondered what's the difference between > /var/log/dmesg, and /var/log/messages? > > Why do we have 2 log files that are similar? > > Kind Regards, > > Keith Roberts > > ----------------------------------------------------------------- > Websites: > http://www.karsites.net > http://www.php-debuggers.net > http://www.raised-from-the-dead.org.uk > > All email addresses are challenge-response protected with > TMDA [http://tmda.net] > ----------------------------------------------------------------- > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
On 01/20/11 10:02 AM, Keith Roberts wrote:> Hi everyone. > > I just wondered what's the difference between > /var/log/dmesg, and /var/log/messages?/var/log/dmesg is a dump of the output of the dmesg command shortly after boot by rc.sysinit. this is done because the kernel message buffer that dmesg (8) dumps often overflows and wraps during normal operations with crud like... TCP: Treason uncloaked! Peer 87.181.155.69:49289/8068 shrinks window 3515263916:3515269047. Repaired. /var/log/messages is the catch-all for syslogd (8), and is updated constantly.