Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Location
    Southern CA
    Posts
    170

    need help with log file analyzing

    okay, i have a bunch of apache logs file, error and access logs. they are like 100 megs in size.

    i have serveral questions. first, should i even take the time to look through the log files?

    secondly, the log files are huge so it would be unfeasiable to open it up in a text editor and scan through it. so, is there some type of log analyzing program i can use?

    how do you guys deal with your logs?

  2. #2
    Join Date
    Aug 2003
    Location
    USA
    Posts
    1,030
    Instead of opening the entire file, you could read the last [insert number here] lines with the "tail" command:
    Code:
    tail -n 1000 /var/log/messages
    This will print the last 1000 lines of the messages log file to your screen.

    Code:
    tail -f /var/log/messages
    This continuously prints new lines to the messages log file.
    CybexHost.com - Shared and Reseller Hosting Solutions on cPanel/WHM Linux Servers
    ModernTweak.com - Discount ModernBill Licenses, Hosted Installations, and Professional Services
    :: Pay for your discount ModernBill license with PayPal
    :: admin[at]cybexhost.com :: AIM: CybexH

  3. #3
    Join Date
    Feb 2005
    Location
    Southern CA
    Posts
    170
    ...

    the thing is i don't want to go through the entire log manually...

  4. #4
    Join Date
    Jan 2005
    Posts
    445
    There's a bunch of webserver log analyzers, I use Sawmill which tends to do the job nicely. For the error logs, just browse through em and see if you find anything noteworthy, if you do, then dig deeper to see if it's a server problem or if someones poking around where they shouldnt

  5. #5
    Join Date
    Dec 2002
    Location
    Egypt
    Posts
    151
    Try to have a look on http://www.hotscripts.com/Tools_and_...Log_Analyzers/

    but I prefer tail -f /path/to/file and start analyzing
    knowledge is Power , Spread it.
    www.e-tutankhamun.com
    [email protected]
    AIM:AhmedFouad0 , yahooID:xor2004

Posting Permissions

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