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 08-07-2006, 01:31 AM
Junior Member
User
 
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
  #2 (permalink)  
Old 10-07-2006, 08:08 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 16-11-2007, 11:45 PM
Junior Member
User
 
Join Date: Nov 2007
OS: Debian
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 18-11-2007, 08:08 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
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
yum Fedora Linux Howto tom Getting started tutorials 6 05-11-2009 06:34 PM
howto get my cpu info on linux system? chiku Linux software 4 20-05-2008 08:06 PM
Linux sync. out of range monitor error harshala09 Linux hardware 2 14-06-2007 09:37 AM
Howto change ip address in Linux chiku Networking, Firewalls and Security 1 29-04-2007 04:51 PM
cvs setup in linux locally - howto jerry Linux software 2 17-06-2006 01:41 PM


All times are GMT +5.5. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 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 37 38