nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Howto: Linux monitor logfiles

This is a discussion on Howto: Linux monitor logfiles within the Linux software forums, part of the Linux Getting Started category; Hi! Linux logfiles are real pain in a$$. I mean there is so much information logged in. For example /var/log/message ...

Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2006, 01:31 AM
Junior Member
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goku
Default Howto: Linux monitor logfiles

Hi!

Linux logfiles are real pain in a$$. I mean there is so much information logged in. For example /var/log/message file. How do you guyes filter log messages? Do you use any automated tool?

I have tons of services running but monitoring logfiles is a pain.

I’d be thankful if someone point out tools or script for me
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-10-2006, 08:08 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
Posts: 1,527
Thanks: 2
Thanked 18 Times in 15 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Download logwatch (log analyser with nice output written in Perl) from following url
http://sourceforge.net/projects/sentrytools/

It allows you to watch (monitor) logs.

Installation
Debian Linux type the following command::
Code:
apt-get install logwatch
Fedora Linux type the following command:
Code:
yum install logwatch
RedHat Enterprise Linux type the following command::
Code:
up2date logwatch
To customize logwatch go to /usr/share/doc/logwatch-*/ directory and read the file HOWTO-Customize-LogWatch

Or Open logwatch.conf file:
Code:
vi /etc/logwatch/conf/logwatch.conf
OR
Code:
vi /usr/share/logwatch/default.conf/logwatch.conf
Read man page of logwatch for more information.
__________________
Vivek | My personal blog
Linux Evangelist
+ ADD [SOLVED] thread prefix to your thread when your problem is sorted out by editing your thread.
+ Always use CODE tags for posting system output and commands!
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 11:45 PM
Junior Member
User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ra6880 is on a distinguished road
Default System log files

What commanddo i nee to use to view system messages in real time as they are written to the system log file
Reply With Quote
  #4 (permalink)  
Old 11-18-2007, 08:08 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
Posts: 482
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 6
monk will become famous soon enough monk will become famous soon enough
Default

use tail -f
Code:
tail -f /var/log/messages
tail -f /path/to/log/file
tail -f /var/log/httpd/access_log
__________________
May the force with you!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
howto get my cpu info on linux system? chiku Linux software 4 05-20-2008 08:06 PM
Linux sync. out of range monitor error harshala09 Linux hardware 2 06-14-2007 09:37 AM
Howto change ip address in Linux chiku Networking, Firewalls and Security 1 04-29-2007 04:51 PM
cvs setup in linux locally - howto jerry Linux software 2 06-17-2006 01:41 PM
yum fedora linux howto tom Getting started tutorials 2 12-26-2005 06:38 PM


All times are GMT +5.5. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.3 - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36