Sun Java System Web Server 6.1 SP12 Administrator's Guide

Viewing an Access Log File

You can view a server’s active and archived access log files.

To view the Administration Server’s access log from the Administration Server, choose the Preferences tab, and then choose the View Access Log Page .

To view an access log for the server instance from the Server Manager, choose the Logs tab, and then choose the View Access Log Page.

To view an access log for an individual virtual server from the Class Manager, select a virtual server to manage from the highlighted Manage Virtual Servers page, then click the link under the heading Access Log on the Virtual Server Manager page. You can specify the number of entries to view or entries with a conditional qualifier of your choice.

The following is an example of an access log in the Common Logfile Format (you specify the format in the Log Preferences window; see Setting Access Log Preferences for more information):

wiley.a.com - - [16/Feb/2001:21:18:26 -0800] “GET / HTTP/1.0” 200 751
wiley.a.com - - [17/Feb/2001:1:04:38 -0800] “GET /docs/grafx/icon.gif 
HTTP/1.0” 204 342
wiley.a.com - - [20/Feb/2001:4:36:53 -0800] “GET /help HTTP/1.0” 401 571
arrow.a.com - john [29/Mar/2001:4:36:53 -0800] “GET /help HTTP/1.0” 401 571

Viewing an Access Log File describes the last line of this sample access log.

Table 10–3 The fields in the last line of the sample access log file

Access Log Field  

Example  

Hostname or IP address of client 

arrow.a.com. (In this case, the hostname is shown because the web server’s setting for DNS lookups is enabled; if DNS lookups were disabled, the client’s IP address would appear.

RFC 931 information 

- (RFC 931 identity not implemented) 

Username 

john (username entered by the client for authentication) 

Date/time of request 

29/Mar/1999:4:36:53 -0800 

Request 

GET /help 

Protocol 

HTTP/1.0 

Status code 

401 

Bytes transferred 

571 

The following is an example of an access log using the flexible logging format (you specify the format in the Log Preferences page, see Setting Access Log Preferences for more information):

wiley.a.com - - [25/Mar/2001:12:55:26 -0800] "GET /index.htm HTTP/1.0" 
"GET" "/?-" "HTTP/   1.0" 304 0 - Mozilla/2.0 (WinNT; I)
wiley.a.com - - [25/Mar/2001:12:55:26 -0800] "GET / HTTP/1.0" "GET" "/?-" 
"HTTP/1.0" 304 0    - Mozilla/2.0 (WinNT; I)
wiley.a.com - - [25/Mar/2001:12:55:26 -0800] "GET / HTTP/1.0" "GET" "/?-" 
"HTTP/1.0" 304 0    - Mozilla/2.0 (X11; I; IRIX 5.3 IP22)