April 27, 2004

Logging

A couple of ways to see the messages from your system:

  1. 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
  2. Check out the /var/log folder. Lots of interesting log files in there, including various dmesg.* ones.
  3. 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
Comments

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...

Posted by: Saint Aardvark the Carpeted on April 28, 2004 02:17 PM

Post a comment

(Javascript required)

(Not published)

Comments: (you may use HTML tags for style)