Results 1 to 7 of 7

Thread: Howto: Linux monitor logfiles

  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10

    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.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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

  4. #4
    Senior Member monk's Avatar
    Join Date
    Jan 2005
    Location
    Tibet
    Posts
    641
    Thanks
    5
    Thanked 42 Times in 37 Posts
    Rep Power
    14

    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!

  5. #5
    Junior Member
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    how often does logwatch email

  6. #6
    Junior Member
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Logwatch emails daily

    Logwatch will send mail to email ID specified in logwatch.conf daily.

    # The default time range for the report...
    # The current choices are All, Today, Yesterday
    Range = yesterday
    Last edited by friendyogi; 29th June 2011 at 01:04 AM.

  7. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    You can just look for specific information in running logs.

    this will only print lines with error -
    tail -f SystemOut.log | egrep "(WSWS3713E|WSWS3734W|WSVR0605W|javax.net.ssl.SSLH andshakeException|ThreadMonitor)"

    the following will print the snippets -
    tail -f /opt/WebSphere6/AppServer/profiles/Viva/logs/VivaWebClusterMemberPsc9800/SystemOut.log | sed -n '/ERROR/,/EST/p'

    Regards,
    vivek


    Quote Originally Posted by goku View Post
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Howto change ip address in Linux
    By chiku in forum Networking, Firewalls and Security
    Replies: 2
    Last Post: 28th December 2011, 07:56 PM
  2. yum Fedora Linux Howto
    By tom in forum Getting started tutorials
    Replies: 6
    Last Post: 5th November 2009, 06:34 PM
  3. howto get my cpu info on linux system?
    By chiku in forum Linux software
    Replies: 4
    Last Post: 20th May 2008, 08:06 PM
  4. Linux sync. out of range monitor error
    By harshala09 in forum Linux hardware
    Replies: 2
    Last Post: 14th June 2007, 09:37 AM
  5. cvs setup in linux locally - howto
    By jerry in forum Linux software
    Replies: 2
    Last Post: 17th June 2006, 01:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 39 40 41