Skip Headers
Oracle® Traffic Director Configuration File Reference
11g Release 1 (

Part Number E21038-03
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
PDF · Mobi · ePub

B Using the Custom Access-Log File Format

This topic contains information about the log format used by Oracle® Traffic Director. Use these format options to customize the format of your log files. You can enter them through the Admin Console, or edit the format subelement of the access-log element in the server.xml file.

You can use variables and expressions in log formats with the syntax $variable and $(expression).

When creating a custom log format, anything between percent signs (%) is recognized as the name portion of a name-value pair stored in a parameter block in the server. Any additional text is treated as literal text, so you can add to the line to make it more readable. The one exception to the percent sign rule is the %SYSDATE% component, which delivers the current system date. %SYSDATE% is formatted using the time format %d/%b/%Y:%H:%M:%S and the offset from GMT.

If no format parameter is specified for a log file, the common log format is used:

"%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%

Typical components of log file format are listed in the following table . Because certain components could resolve to values that contain spaces, they are enclosed in escape quotes (\").

Option Component

Client host name (unless iponly is specified in flex-log or DNS name is not available) or IP address


Client DNS name


System date


Full HTTP request line




Response content length


Response content type


Referer header


User-agent header


HTTP method




HTTP query string


HTTP protocol version


Accept header


Date header


If-Modified-Since header


Authorization header


Any header value


Name of authorized user


Value of a cookie


Value of any variable in Req->vars


Virtual server ID



%Req->vars.ecid%. For more information, refer the elements of http.


%Req->vars.rid%. For more information, refer the elements of http.



Records the time in microseconds the server spent handling the request. Statistics must be enabled before %duration% can be used.

System time


System time in seconds since 00:00:00 UTC, January 1, 1970.

Relative time


System time in seconds since logging started.

Method number


A number representing the HTTP method as used in NSAPI.

HTTP Protocol Version


A number representing the HTTP protocol version as used in NSAPI.

HTTP request line


The method from the HTTP request line.



The URI from the HTTP request line.

URI path


The absolute path component of the URI

URI query


The query component of the URI.



The SSL client certificate authentication for web security.

HTTP protocol


The protocol from the HTTP request line.

Protocol name


The name of the protocol.

Protocol version


The version of the protocol.

Origin server


The origin server that served the request.

Additional log file parameters that can be configured are listed in the table below.

Option Component

Cipher name


Size in bits of cipher key


Size in bits of private key


DN for certificate issuer


DN for certificate user


SSL session identifier