LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2010, 06:40 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
log file usage how to


hello every body
I wanted to know how can I use apache log files for trouble shooting ( I know how to see inside them) I mean what key word should I search in each of them when it fails ,as you know just getting cat of each of them is very time consuming , what should I search in them what should I look for in each log file.

Thanks a lot.

Last edited by golden_boy615; 04-26-2010 at 06:43 AM.
 
Old 04-26-2010, 06:59 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Apache error codes?
http://www.askapache.com/htaccess/ap...rdocument.html
 
Old 04-26-2010, 07:01 AM   #3
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
What exactly do you mean by failing? Search keywords are very sensitive to details. If you have a specific event that fails, open a couple of terminal windows, do a `tail -f /path/to/error_log` and then do the thing that causes the failure while watching the log.

Also, cat isn't the best approach for checking a potentially large log file. I would typically use less. You can then search, jump to the end of the file and search backwards, etc. Also, one would assume that the error_log would be relatively short compared to the access_log. If not, then you have some real problems. My inclination would be to try to fix everything you can that causes messages to error_log.

If you start by reading the logs as things happen, you'll get a sense of what to expect and what is unusual. The more familiarity you develop with the logs, the easier it will be for you to troubleshoot.
 
1 members found this post helpful.
  


Reply



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
Want to write a script for calculating usage of software from text file contains log sheraz Linux - Newbie 7 10-06-2009 03:05 AM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
setting file permissions for file /var/log/Xorg.0.log mfb Linux - Security 1 07-07-2009 01:41 PM
Deleting a 28gb log file has no impact on disk usage, can someone explain why? Andrew.Johnstone Linux - General 3 10-21-2008 05:50 AM
Lire (log analysis, log report) no report in Mandriva 2005 LE (desktop usage) Emmanuel_uk Mandriva 0 01-16-2006 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:29 AM.

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