Logging

WebSite has three main logs: the access log, the error log, and the server log. The access log records each request to the server and the server's response in one of three formats: Common (older NCSA/CERN), Combined NCSA/CERN, and Windows Log format. The error log records access errors, such as failed user authentication. The server log records each time the server is restarted or its configuration is updated. You can also set a variety of tracing options to have the server log collect more or less detailed information. The tracing information is used primarily for troubleshooting and debugging.

WebSite log configuration occurs on the Logging page of Server Admin. shows the default Logging page.

[Graphic: Figure 26-6]

The Log File Paths section allows you to choose the path and filenames of the log files. The default files are in the directory /WebSite/logs. You can place a full pathname to put the logs in another location. The server will shut down if it cannot maintain log files. Therefore, if you locate the logging directories on a remote computer, make sure that it will always be available when the server is running.

The Access Log Format section of the page allows you to select the format of the access log file. The three formats are described as follows:

Instead of the IP address, you can have WebSite find and put the requesting client's hostname in the log files. To do this, select the Enable DNS Reverse Lookup box in the Client Hostname Lookup section of the Logging page. For every logged access, the server will contact its DNS server with the browser's IP address and ask for its corresponding DNS hostname. It is not suggested that you use this feature without a compelling reason as it will slow transaction time noticeably.

WebSite has 10 different tracing options that provide detailed data about the server's activity in the server log. You can select one or more of these options by clicking on the appropriate checkboxes in the Tracing Options sections of the Logging page. The first six options listed are useful to the server administrator, while the last five are used mainly by technical support. The last five will not be described here. You can remove any tracing option by clicking on a checked box, or press Clear All Tracing to remove them all. The first six tracing options are as follows: