log files

Taking care of your Linux box.
Post Reply
gardenair
Havaldaar
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm

log files

Post by gardenair »

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
khizer
Lance Naik
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah

Post by khizer »

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.
gardenair
Havaldaar
Posts: 106
Joined: Tue Dec 28, 2004 10:07 pm

Post by gardenair »

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
khizer
Lance Naik
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah

Post by khizer »

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