LinuxQuestions.org
Help answer threads with 0 replies.
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 10-30-2013, 01:18 PM   #1
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Rep: Reputation: 2
Checking logs and performance of a Linux server


I'm looking for suggestions of common logs that must be checked on a Linux server. I know this depends on which services are running and so, but in general, which logs should I check?

Also, are there tools to make it easier? Or should I write my custom script?

Finally, how do you monitor the performance of a Linux server?
 
Old 10-30-2013, 01:37 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by yzT! View Post
I'm looking for suggestions of common logs that must be checked on a Linux server. I know this depends on which services are running and so, but in general, which logs should I check?
The 'default' log is /var/log/messages or /var/log/syslog. But you can log things to ANY file, so it all depends on how you have syslog set up. And each service can also have its own log file, independent of the system log.
Quote:
Also, are there tools to make it easier? Or should I write my custom script?
Any tool you find will have to be customized, since only YOU would know what you're looking for, and where. Depending on your needs, it MIGHT be easier to write your own...it might not.
Quote:
Finally, how do you monitor the performance of a Linux server?
The same way you monitor it for any OTHER server. And again, it all depends on what's running on it. For some servers (Database servers, for example), it might be absolutely normal for a disk to be 99% full, and have most of the RAM consumed. Web servers may have MANY http processes running.

Your questions are fairly open-ended...not really a good answer for any of them.
 
Old 10-30-2013, 02:57 PM   #3
agentsteel
Member
 
Registered: Oct 2012
Location: France
Distribution: Debian / Fedora / Ubuntu / OpenBSD
Posts: 46

Rep: Reputation: Disabled
Use monitoring software. Munin for example is simple to use.
 
Old 12-23-2013, 07:56 AM   #4
MonitoringSpecialist
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Monitoring logs can be a rather complex task to undertake. It may appear simple at first glance, but when you start working on it, it can get cumbersome. i'll respond back shortly with a list of logs that are generally watched by every system administrator or application developer.
 
Old 12-23-2013, 08:00 AM   #5
MonitoringSpecialist
LQ Newbie
 
Registered: Dec 2013
Posts: 2

Rep: Reputation: Disabled
Log Files to Monitor on any linux host:

Ubuntu:
/var/log/syslog
/var/log/apache2/access.log
/var/log/apache2/error.log

RedHat
/var/log/syslog
/var/log/httpd/access_log (or access.log)
/var/log/httpd/error_log (or error.log)

I use <moderated> to monitor all my logs. However, to use it though, you have to have Nagios installed on your local server. if you dont want to install Nagios, you can use Cron.

<moderated>

The above log check command will basically check and monitor the [ /var/log/syslog ] log file for any new occurrences of the strings specified.

You may also want to keep an eye on your package install log files:

On Ubuntu, this log file is:

/var/log/dpkg.log (keep track of packages installed on the system)

On RedHat/CentOS hosts, log file is:

/var/log/yum.log

Last edited by colucix; 12-24-2013 at 05:45 AM. Reason: Removed link to commercial software.
 
Old 12-23-2013, 06:44 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This tool is part of most distros http://linux.die.net/man/8/logwatch

(PS: Not every(!) system runs a webserver you know )
 
Old 12-24-2013, 05:46 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
@MonitoringSpecialist: we are glad if you registered to give a hand to answer questions, but please don't post links to non-free software sites. They are considered advertising and advertising is not allowed here. Thank you in advance.
 
  


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
Checking httpd or apache logs for files upload status devUnix Linux - General 8 08-13-2013 01:03 AM
checking system performance vikas027 Linux - Server 9 04-22-2009 05:31 AM
Finding LDAP Server Logs / Application Logs in Linux arbignay Linux - Newbie 2 03-24-2008 09:54 AM
Checking port logs. JerryMcFarts Linux - Security 4 09-08-2005 06:34 PM
Checking Logs Echo Kilo Linux - General 1 06-02-2005 07:35 PM

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

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