April 27, 2004
Logging
A couple of ways to see the messages from your system:- The dmesg command. This will dump the messages you see at start up. You'll probably need to pipe it through less to see all of it:
$ dmesg | less
- Check out the /var/log folder. Lots of interesting log files in there, including various dmesg.* ones.
- Edit /etc/syslog.conf and uncomment the line to create /var/log/console.log. This way you'll even get any automagically run fsck and such.
del.icio.us | Digg it | Furl | Yahoo MyWeb | Create Social Bookmark Links
Posted by jdarnold at 12:58 PM | TrackBack
Track with co.mments
Track with co.mments dmesg -a is also a good one to run. From the man page: "Show all data in the message buffer. This includes any syslog records and /dev/console output."
Another good thing to do is edit syslog.conf and uncomment the line that has "/var/log/all.log" in it. Touch /var/log/all.log as root and chmod it to 600, HUP syslogd, and all the logging goodness you could possibly want gets sent to all.log. It's amazing what you can miss if this isn't done, especially on a server.
I am now blessing your keyboard...



