HTTP Service Access Logging

Use the HTTP Service Access Logging page to specify the general access log policy for web applications.

The HTTP Service Access Logging page contains the following options.

Access Logging

If this option is selected, access logging is enabled for all virtual server sub-elements that do not specify this property. If not selected, this option disables access logging for all virtual-server sub-elements that do not specify this property. This option is disabled by default.

Rotation

If this option is selected, log file rotation is enabled. This option is enabled by default.

Rotation Policy

The only available rotation policy is time.

Rotation Interval

The number of minutes between rotations of the access log. This field is valid only if the Rotation Policy is time. The default value is 15 minutes.

Ensure that the rotation suffix contains enough values to create a unique suffix for every log rotation. For example, if the access log is rotated more frequently than once every day, include the time of day in the rotation suffix.

A unique suffix is required to ensure that the access log file is rotated every time that the rotation interval has elapsed. If the rotation suffix of the new access log file is the same as the rotation suffix of the existing access log file, the file is not rotated.

Rotation Suffix

String value to be added to the end of the log file name after rotation. The default value is yyyy-MM-dd.

Access Log Buffer Size

The size, in bytes, of the access log buffer, or a value less than or equal to zero for unbuffered access logs. The default value is 4096.

Access Log Write Interval

The number of seconds before the log will be written to the disk. The access log is written when the buffer is full or when the interval expires. If the value is less than or equal to zero, then the buffer is always written even if it is not full. This means that each time the server is accessed, the log message is stored directly to the file.

Format

String value that specifies what information is to be captured in the access log and the order in which it is captured. The default value is as follows:

%client.name% %auth-user-name% %datetime% %request% %status% %response.length%

The following values are available for inclusion in the format string:

%client.name%

Client host name

%client.dns%

Client DNS

%datetime%

System date

%request%

Full HTTP request line

%status%

Status

%response.length%

Response content length

%header.referer%

Referer header

%header.user-agent%

User agent header

%http-method%

HTTP method

%http-uri%

HTTP URI

%query-str%

HTTP query string

%http-version%

HTTP protocol version

%header.accept%

Accept header

%header.date%

Date header

%header.if-mod-since%

If-Modified-Since header

%header.auth%

Authorization header

%header.any%

Any valid HTTP header value defined in RFC 2616 (any is also a valid header value; it is specified as a variable here)

%auth-user-name%

Name of authorized user

%cookie.value%

Value of a cookie

%vs.id%

Virtual server ID

Additional Properties

Additional properties for the HTTP Service. The Enterprise Server does not define any additional properties for the HTTP Service.

Related Tasks
Related asadmin Commands

None.