LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2011, 12:01 AM   #1
linuxquestionmember
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Cant Display System Log on Centos


hi..
need some advice i am use Centos 5.6 as my application server, and i am installing with gui(not just console)
usually if i want to see the log, i simply open System log from System-Administration-System Log

this morning when i am open the system log for a couple second the log seen, but when i am open my application log there is no error but the log isn't seen at all..

just blank
i wonder if the is an error in my centos?
or anything possible that cause this problem ?
 
Old 05-02-2011, 01:38 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetings!

Check the permissions of /var/log/messages. IIRC, by default only root can "see" those files, so you might have to do the following at a command prompt (aka: That "Terminal", "Konsole", "Command Line Do-Hickey");

chmod a+r /var/log/message*

NOTE: You will have to run the above command as root, so you might need to prepend "sudo" in front of it.

P.S: Nice Username. Surprised that wasn't taken already.
 
Old 05-02-2011, 03:40 AM   #3
tallship
Member
 
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 534
Blog Entries: 3

Rep: Reputation: 118Reputation: 118
Exclamation

I'm not sure what you mean by you installed your application server with a gui - it could be a local machine or a remote machine.

If it's local, open an Xterm. If it's a remote machine, then:

Code:
$ ssh username@host.sld.tld
In either case, simply:

Code:
$ su -
That will prompt you for the root password and then you'll see that your prompt has changed from '$' (or '%') to '#'

Then you need to do one of the following, depending upon which file you want to see:

Code:
# tail -f /var/log/messages

# tail -f /var/log/maillog

# tail -f /var/log/secure
etc...

That will "tail the logs", the '-f' "Follows" the tail, so you will see a continous flow of logged items as they are added to the end of the logfiles.

you can also:

Code:
# less /var/log/messages
Using "less", you can use the 'j' key or the 'return' key to scroll down through the file, the 'k' key to scroll up through the file, and the space bar to move down a page at a time.

If you have a mouse, you can

Code:
# cat /var/log/messages
the whole file will whiz by until the end is reached, at which point you can use your mouse to scroll back up and down.

The 'head' command is similar to the 'tail' command, showing the top few lines of the file you have chosen.

To find out what logfiles are there:

Code:
# ls /var/log
and for more information:

Code:
$ man head

$ man tail

$ man less

$ man cat

$ man ls
If you really need to use something like KSystemLog (I'll assume you're running Xfce), then this will get you going...

Code:
$ su -

# ksystemlog &
that su's you (logs you in as) root, and then runs a graphical logviewer, 'ksystemlog', and the '&' bg's everything so you can close the Xterm that called the graphical utility.

Finally, READ THIS ENTIRE BOOK

I hope that helps

Kindest regards,

Last edited by tallship; 05-02-2011 at 03:45 AM. Reason: added rute
 
1 members found this post helpful.
Old 05-02-2011, 03:59 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Is there a chance that the log files have been rotated at the first of month and the new log file has not been populated, yet? Usually this task is accomplished automatically by a daily crontab in /etc/cron.daily but some specific applications might put rotation of their logs into /etc/cron.monthly as well.
 
Old 05-02-2011, 02:31 PM   #5
tallship
Member
 
Registered: Jul 2003
Location: On the Beaches of Super Sunny Southern San Clemente, California USA
Distribution: Slackware - duh!
Posts: 534
Blog Entries: 3

Rep: Reputation: 118Reputation: 118
Yes but the files would still exist. From what I could glean from his post he was unable to see the logs, and an empty logfile will still show if one can see it.
 
Old 05-11-2011, 10:14 PM   #6
poisonousbutterfly
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Rep: Reputation: 0
solved

Thanks guys

the problem has been solve
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu display problem on dual display system joboy Linux - General 2 05-01-2011 10:00 AM
/var/log file system and monitoring health of system drManhattan Red Hat 7 04-30-2011 05:15 PM
Please check log system on Centos 5 chobong Linux - Newbie 7 10-13-2010 03:47 AM
Can't log into Centos wasamzy Linux - Server 5 03-06-2010 03:08 PM
yum update on CentOS 5.3 upgraded my system to CentOS 5.4 diskoe Red Hat 1 10-29-2009 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration