Click to See Complete Forum and Search --> : Logfiles


phantasma
04-03-2001, 10:17 AM
I need to know what logfiles exist under Redhat Linux. What are the messages ??

Please help

thx

bdg1983
04-03-2001, 04:09 PM
On mine, they are in /var/log. Should be the same for Redhat. Check /etc/syslog.conf

posterboy
04-03-2001, 05:23 PM
On RH, /var/log/messages consists of the output of both the syslogs and the kernel logs, unless you have changed it. That's the defualt way it works, as shipped. You can say, at a command line, things like:
tail -f /var/log/messages and see the logs being kept in real time. You can also save that into a file named, say, "log", which you make executable: chmod +x log and when you type log, you will get that output. Often helpful. But, RH keeps a LOT of logging going on, depending on what services you have running. They are mostly in /var/log, but note the spool dir in there, which contains lots of other logs, and /var/log/httpd, which contains all the Apache logs, etc. You will see how it works, quickly. These rotate weekly, default is to keep 4 weeks, so the drive won't really get a lot of space devoted to these. HTH, Ray

[ 03 April 2001: Message edited by: posterboy ]

saeed_contractor
04-03-2001, 06:56 PM
on a red hat distro dmesg will show you the contents of /var/log/messages.

jlany
04-03-2001, 08:01 PM
Originally posted by saeed_contractor:
on a red hat distro dmesg will show you the contents of /var/log/messages.

Not quite right that. Dmesg only shows the boot strap messages, not the complete contents of /var/log messages.