LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 01-28-2006, 10:36 PM   #1
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Rep: Reputation: 31
log reading basics


okay, i've been using mepis for a few months now - and like it a lot. the whole gnu/linux thang is really cool.

however, i want to increase my skills. i hear how it is important to check your logs... but i have no clue how.

so, if someone would explain the basics of checking logs and give me (and all the lurkers!) an idea what i need to be looking for - i'd very much appreciate it.

tia...
 
Old 01-28-2006, 10:59 PM   #2
mos
Member
 
Registered: May 2005
Location: Orlando, Fl
Distribution: ArchLinux (Can use any distro though)
Posts: 231

Rep: Reputation: 30
which kind of logs do you want to read first?

/var/log/dmesg is good for diagnosing problems
/var/log/Xorg.0.log is good for finding out why xorg isnt starting
/var/log/messages can give you a LOT of info on most anything.

basicly, you need to know what your looking for before you go reading the logs, for the most part they are a debug tool.
 
Old 01-28-2006, 11:02 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
On my system, you need root access to view the logs, so you may have been getting permissions errors if you tried to access the files under /var/log as an ordinary user instead of root. You can view the logs with any text editor, but it may help to use a log parsing tool like logwatch from http://www.linuxpackages.net/pkg_details.php?id=4153.

I have mine configured to medium detail level and this as well as manual parsing of my logs is very useful.

As to what to look for - it's best to look in the logs first and then search the man pages for what to expect, then ask questions here about specific entries.
 
Old 01-28-2006, 11:26 PM   #4
GNewbie
Member
 
Registered: Sep 2005
Distribution: (U/K/X)buntu 6.1 (newer box) / D*mn Small Linux (older box)
Posts: 326

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by mos
which kind of logs do you want to read first?

/var/log/dmesg is good for diagnosing problems
/var/log/Xorg.0.log is good for finding out why xorg isnt starting
/var/log/messages can give you a LOT of info on most anything.

basicly, you need to know what your looking for before you go reading the logs, for the most part they are a debug tool.
mos, thanks. i will look at all the log files you mentioned. the fact is, i don't know what i need to be looking for... but i'll learn a little by reading through the logs.

gilead, thanks for the note regarding logging in as root.

best...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
log on not reading user's .bashrc jkcunningham Linux - General 8 05-15-2010 07:49 PM
good reading material to learn linux basics? Sir Robin Linux - Newbie 6 02-04-2006 05:57 AM
Debian not reading .xinitrc on log in esteeven Debian 1 02-23-2004 10:49 AM
Help reading Error Log (messages) micxz Linux - Networking 2 09-27-2003 04:52 AM
Log file reading Garak Linux - General 5 07-08-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 07:16 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