SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Friday, March 13, 2009

Linux log file location

Hi i am working in linux environment for the past 2.5 yrs.At first i worked in Redhat linux and later i started working in Ubuntu flavours.I have noticed almost all log files ar under /var/log directory (and subdirectory).

Just switch over to the directory /var/log:
cd /var/log
ls -la *.log


-rw-r----- 1 root adm 409 2009-03-14 07:39 apport.log
-rw-r----- 1 syslog adm 4534 2009-03-14 10:56 auth.log
-rw-r--r-- 1 root root 38607 2007-10-16 04:48 bootstrap.log
-rw-r----- 1 syslog adm 50222 2009-03-14 10:56 daemon.log
-rw-r----- 1 root adm 505 2009-03-14 09:37 dpkg.log
-rw-r--r-- 1 root root 3113 2007-10-16 05:00 fontconfig.log
-rw-r----- 1 syslog adm 81405 2009-03-14 10:56 kern.log
-rw-r----- 1 syslog adm 0 2007-10-16 04:48 lpr.log
-rw-r----- 1 syslog adm 0 2007-10-16 04:48 mail.log
-rw-r----- 1 mysql adm 0 2009-03-14 06:38 mysql.log
-rw-r--r-- 1 root root 0 2007-10-16 04:50 pycentral.log
-rw-r--r-- 1 root root 116278 2009-03-14 06:52 scrollkeeper.log
-rw-r----- 1 syslog adm 116 2009-03-14 10:56 user.log
-rw-r--r-- 1 root root 308 2007-10-16 05:00 wvdialconf.log
-rw-r--r-- 1 root root 68794 2009-03-14 10:56 Xorg.0.log
-rw-r--r-- 1 root root 46643 2008-11-22 23:14 Xorg.20.log
-rw-r--r-- 1 root root 2080 2008-11-22 23:26 Xorg.21.log


In /var/log is the place where we can find all the linux log file such as authentication,kernel,cron,mail,Xorg,apache,system boot,mysql,user logs etc.