Home Sitemap | Log in - Register now (free)
 
Advanced
  • Articles
  • News
    • Internet
    • Linux
    • Security
  • CPanel
  • ensim
  • Tutorials
    • WHM
    • FTP
    • Fantastico
    • DNS
  • Forums
imageHome : Articles : Apache Logs

Apache Logs

danrak on 21 July, 2007 19:22:00 | 217 times read

Archive

Su Mo Tu We Th Fr Sa
123
45678910
11121314151617
18192021222324
25262728293031

Newsletter

Subscribe to newsletter:

Poll: server

What Web Server Do You Use?
Poll results

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this

Did you enjoy this article?

(total 0 votes)

No matching news for this article

    Adjust font size: Decrease font Enlarge font
    image

    The Apache log files are basically designed to give the user feedback on the activity, performance, and problems that may be occurring on the server. To do this, Apache offers various, comprehensive logs such as the ErrorLog and the AccessLog as well as offering flexible logging capabilities in the Apache HTTP Server. Here is a quick guide to these useful logs.

    Prior to entering the Error or AccessLogs, it is advisable to check the CustomLog and LogFormat directives. The first can specify the location and content of the reported logs and the second can specify the selection and content, respectively. The logs are both very straightforward and easy to edit. Certain information may be unnecessary to what the user is looking for so simply edit a few settings and the logs will be outputted just how they are wanted.

    Obviously, the ErrorLog is the most important log and should be given the most attention. The Apache httpd will send diagnostic information and record any errors that it encounters in processing requests. After any server error, it is important to check the ErrorLog to try and find out where the error originated from and the ErrorLog will even offer details on the error and what to do to fix it. The AccessLog, on the other hand, records all requests made to the server. Although not especially important to check for most, the AccessLog is useful for checking on who is visiting the site and other relative information. The last log worth mentioning in this short guide is the Rewrite Log. Mod_rewrite has become incredibly popular recently due to SEO, or Search Engine Optimization. The RewriteLog gives details on how the server is processing those changes and can be quite useful.

    Handling these logs is very important. Even servers hosting small amounts of information can build up huge log files over time. In general, a log file increases by 1MB per 10,000 requests. For this reason, it is important to keep an eye on these logs and rotate/delete them. Apache will continue to write in the same log basically forever until it is told otherwise. Basically, when the user would like to delete the log, the best way to go is to tell the server to undergo a graceful restart, which will make it write in a new log without losing the connection with clients accessing the server. Once the new log file has been created, the old log file can be deleted, moved, examined, etc.

    Indeed, Apache offers intricate yet very simple and easy to read log files. These files should be examined occasionally, particularly the ErrorLog, and they also need to be managed so that the server doesn’t become too cluttered with old logs.
    • email Email to a friend
    • print Print version
    • Add to your del.icio.us del.icio.us
    • Digg this story Digg this

    Post your comment comment Comments (0 posted)

    Please enter the code you see in the image:

    More News

    Articles Articles

    • Dedicated Hosting: A Crash Course
    • Be a Web Hosting Provider

    CPanel CPanel

    • Webmail
    • Sub Domains

    ensim ensim

    • Squirrel Mail
    • Subdomains

    WHM WHM

    • Themes
    • Suspend

    FTP FTP

    • wsFTP Transferring
    • wsFTP Manging Files

    Fantastico Fantastico

    • phpLists
    • Xoops

    DNS DNS

    • Register Name servers
    • RegFly Name servers

    Internet Internet

    • Application builders in the sky (InfoWorld)
    • New Post Web section to send readers elsewhere (AP)

    Linux Linux

    • Mozilla: Firefox license in Ubuntu was 'giant error' (CNET)
    • Despite T-Mobile, Android Launches May Be Delayed (NewsFactor)

    Security Security

    • McAfee to pay 5 million for Secure Computing (Reuters)
    • Cyber attack launched on Shiite websites: Iran report (AFP)
    Home | Set as homepage | Add to favorites | Sitemap | Rss / Atom
    Tech Support | DIY Forum | Home Brewing | Freemasonry | Mythology Forum | Brew Tips | Covert Gamer | FAQ Food | Forum Starters | Geek Humor | Home Brewing Recipes | Fonts | Car Detailing | Romantic Handbook | Tech Handbook | FAQ Animals | Automotive Support