Knowledgebase: Stats & Stuff
Error Logging
Posted by SITEWORKS SYS on 18 November 2005 12:43 AM

The account's error log is an important log file. This is the place where Apache httpd will send diagnostic information and record any errors that it encounters in processing requests related to your website.

The format of the error log is relatively free-form and descriptive. But there is certain information that is contained in most error log entries. For example, here is a typical message:

[Thu Nov 17 08:51:25 2005] [error] [client 168.171.251.51] File does not exist: /www/domain/localinterest/

The first item in the log entry is the date and time of the message. The second entry lists the severity of the error being reported. The third entry gives the IP address of the client that generated the error. Beyond that is the message itself, which in this case indicates that there is no such page at that location, but it is apparently being called from elsewhere on the web or within the site. The server reports the file-system path (as opposed to the web path) of the requested document.

A very wide variety of different messages can appear in the error log. Most look similar to the example above. The error log will also contain debugging output from CGI scripts. Any information written to stderr by a CGI script will be copied directly to the error log.

(1321 vote(s))
Helpful
Not helpful

Comments (0)