Configuring the HTTP Service Access Log
Use this page to enable and configure rotation for the access logs for the virtual servers. These logs are in the install_dir/domains/
domain_name/logs/access
directory and are named as follows:
virtual_server_name_access_log.yyyy-mm-dd.txt
Click Load Defaults to load the default values. To change the rotation properties for these logs, do the following:
- Check the File Rotation box to turn on file rotation. By default, file rotation is enabled.
- From the Rotation Policy drop-down list, choose a policy. (The only policy available is
time
.)
- In the Rotation Interval field, type a numeric value to specify the number of minutes between rotations of the access log. This field is valid only if the Rotation Policy is
time
. The default is 1440 minutes.
- In the Rotation Suffix field, type a string value to specify the suffix to be added to the log file name after rotation. The default is
%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s
.
- In the Format field, enter a string value to specify the format of the access log. Use the formats shown in the following table. The default format is
%client.name% %auth-user-name% %datetime% %request% %status% %response.length%
.
Table 0-4 Token Values for Access Log Format
Data
|
Token
|
Client Host Name
|
%client.name%
|
Client DNS
|
%client.dns%
|
System Date
|
%datetime%
|
Full HTTP Request line
|
%request%
|
Status
|
%status%
|
Response Content Length
|
%response.length%
|
Referer Header
|
%header.referer%
|
User-agent
|
%header.user-agent%
|
HTTP Method
|
%http-method%
|
HTTP URI
|
%http-uri%
|
HTTP Query String
|
%query-str%
|
HTTP Protocol Version
|
%http-version%
|
Accept Header
|
%header.accept%
|
Date Header
|
%header.date%
|
If-Modified-Since Header
|
%header.if-mod-since%
|
Authorization Header
|
%header.auth%
|
Any valid HTTP header value defined in RFC 2616 (any is also a valid header value; it is specified as a variable here)
|
%header. any%
|
Name of Authorized User
|
%auth-user-name%
|
Value of a Cookie
|
%cookie.value%
|
Virtual Server ID
|
%vs.id%
|
- Click Save to save the changes, or Load Defaults to return to the default settings.
See Also:
Legal Notices