log files

Taking care of your Linux box.

log files

Postby gardenair » Tue Mar 15, 2011 1:53 pm

I am using cent os 5. I daily check mt log general log files as
# less /var/log/messages

When I try to view /var/log/boot it show me message


# less /var/log/boot
/var/log/boot: no such file or directory

I even can not see logs of /var/log/apport.log,/var/log/dmesg,/var/log/daemon.log

Kindly guide me how can I access log files of the said services ?

thanks
garden
gardenair
Havaldaar
 
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm

Postby khizer » Tue Mar 15, 2011 4:27 pm

make sure you are root user. (test it by the command

Code: Select all

"whoami"
). Then run the following command

Code: Select all

ls /var/log/


and paste the output here:
-Khizer Naeem Mughal

Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
khizer
Lance Naik
 
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah

Postby gardenair » Wed Mar 16, 2011 9:22 am

Well I am using root user. Following is the info


[root@my-proxy ~]# ls /var/log

acpid conman.old mail prelink spooler

anaconda.log cron maillog rpmpkgs spooler.1

anaconda.syslog cron.1 maillog.1 rpmpkgs.1 spooler.2

anaconda.xlog cron.2 maillog.2 rpmpkgs.2 squid

audit cups messages samba tallylog

boot.log dmesg messages.1 scrollkeeper.log vbox

boot.log.1 faillog messages.2 secure wtmp

boot.log.2 gdm news secure.1 Xorg.0.log

btmp httpd pm secure.2 Xorg.0.log.old

conman lastlog ppp setroubleshoot yum.log


thanks,
garden
gardenair
Havaldaar
 
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm

Postby khizer » Wed Mar 16, 2011 12:03 pm

I think you should be able to see the logs by running the following command

Code: Select all

less /var/log/boot.log


Well first you complained that
gardenair wrote:# less /var/log/boot
/var/log/boot: no such file or directory

It is because there is no file "boot" in the /var/log/ directory


I think you should try again :)
-Khizer Naeem Mughal



Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
khizer
Lance Naik
 
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 3 guests

cron