nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-08-2006, 02:31 AM
Junior Member
 
Join Date: Jul 2005
Posts: 4
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, 09:08 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
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
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 11-17-2007, 12:45 AM
Junior Member
User
 
Join Date: Nov 2007
My distro: Debian
Posts: 1
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, 09:08 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
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

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 05:13 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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