The WebMaster uses the access log to track every attempt to access the server, even failed attempts. This information can be useful for many different reasons. It can be used to determine which pages are being hit the most and perhaps where bad links exist (in the cases where unsuccessful attempts are reported). The access log has two different formats. The format used is dependent upon the file system the log is configured within. For every file system other than the QSYS file system the log file is a text file with its format conforming to the defacto standard put in place by the web server industry. By following this standard format it has made it easier for the WebMaster to obtain industry standard tools to help analyze the data. If the log file is configured for the QSYS file system the file is a Data Base file which contains a superset of the data stored within the text format. In either format if the file exists prior to starting the server the file will be appended to. If the file does not exist it will be created.
The access log is a file created using the Access Log Filename configuration value. Access logging can be disabled by specifying a blank access log filename within the master configuration file, or by specifying a '*none' value within the CHGWWWCFG command.
The following is the format of an access log entry.
Internet Address - User Name [Date and time stamp] "Req type URL HTTP level"
Status
code Bytes Transferred
DD is the day of the month
Mth is the month
Year is the year
hr is the hour displayed as a value (0 - 23 hours)
mi is the minutes
ss is the seconds
GMT will be the difference in time between the current time
zone set on the AS/400 and Greenwich Mean Time. The first character in this
field represents whether the current time zone is ahead (+) or behind (-) GMT.
The next 4 characters represent the offset in hours and minutes HHMM.
The data base format of the access log is very similar to the text formatted
log file in the sense that it contains a single record for each attempted
document access and it includes a superset of the data available in the text
log file. The field ordering of the data base version of the access log file
differs from the text formatted version. The following is the format of the
data base version of an access log entry.
Short Internet Address - User Name Date Time [Date and time stamp] Status
code Bytes Transferred "Req type URL HTTP level" Long Internet Host Name
YYYY is the year using 4 character positions
MM is the month using 2 character positions
DD is the day of the month using 2 character positions.
HH is the hour displayed as a value of (00 - 23 hours)
using 2 character positions
MM is the minutes using 2 character positions
SS is the seconds using 2 character positions
DD is the day of the month using 2 character positions
MM is the month using 2 character positions
YYYY is the year using 4 character positions
HH is the hour displayed as a value of (0 - 23 hours) using 2
characters positions
MM is the minutes using 2 character positions
SS is the seconds using 2 character positions
GMT will be the difference in time between the current time
zone set on the AS/400 and Greenwich Mean Time (GMT) using 5 character
positions. The first character in this field represents whether the current
time zone is ahead (+) or behind (-) GMT. The next 4 characters represent the
offset in hours and minutes HHMM.
The differences between the text access log file and the data base access log file are described by the additional fields listed below.
The DDS source used to create the access log can be found in the WWWSERVER library QDDSSRC file ACCESSLOG member. This information can be used to programmatically describe the record format of the access log data base file.
The Server User Profile requires Read, Write and eXecute authorities for the directory containing the access log file.