TC::pattern - Access Log Pattern

Specifies the data pattern for Platform Server access log records. The pattern string specifies variables which are substituted with their corresponding values. All other characters in the pattern string are transferred literally to the log record.

To use the cache warm-up utility, spaces must be used as field separators. The Platform Server replaces all spaces and ‘%’ characters in field values with %20 and %25, respectively.

The following pattern variables are supported:

PatternDescription
%aRemote IP address.
%ALocal IP address.
%bResponse byte count excluding HTTP headers, or ' ' if zero.
%BResponse byte count excluding HTTP headers.
%DRequest processing time in milliseconds.
%Ithread id (for cross-referencing debug/error log entries).
%G

date and time, formatted as yyyy - MM - dd HH : mm : ss . SSS offset

( SSS are msec, offset is the GMT time offset); the time value is captured when the response is sent to the client.

%mRequest method ( GET , POST , and so forth).
%ORequest overlap (number of requests processed concurrently).
%pLocal port on which this request was received.
%qQuery string (prepended with a '?' if it exists).
%rFirst line of request (request method, URI, HTTP version).
%RSame as %r , but applies limited HTTP-encoding to the URI to avoid log parsing problems.
%sHTTP response status code.
%SUser session ID.
%tDate and time, in Common Log Format.
%uRemote user that was authenticated (if any), else ''.
%UURI path.
%vLocal server name.
%TRequest processing time in seconds.
%{CacheKey}rPlatform Server cache key (cache file folder/name).
%{CacheUse}rPlatform Server cache management keyword: { REUSED | CREATED | UPDATED | REMOTE | REMOTE_CREATED | REMOTE_UPDATED | REMOTE_CACHE | VALIDATED | IGNORED | UNDEFINED } .
%{ContentType}rThe response MIME type.
%{Context}rThe destination context if a context forward occurs.
%{Digest}rThe etag response header value (MD5 signature of the response data).
%{Exception}rError message.
%{FetchTime}rTime taken to retrieve cache entry or data from Image Server.
%{ParseTime}rTime taken for request parsing and image catalog lookup.
%{PathBasedAccess}rIndicates whether or not this request attempted any path-based access outside of the catalog system.
%{PeerServer}rIP address of the peer server in the cache cluster which delivered the cache entry or '-' if CacheUse is neither REMOTE_CREATED nor REMOTE_UPDATED .
%{ProcessingStatus}r

Error category:

  • 0=no error.

  • 1=image(s) not found on the server.

  • 2=IS protocol usage error or a content error other than 1.

  • 3=other server error.

  • 4=request refused due to temporary server overload.

%{ReqType}rThe upper-cased value of req= .
%{RootId}rThe root id of the request's main catalog.
%{SendTime}rThe time it takes Platform Server to send response after writing data to the output stream.
%{Size}rLike %B , but includes values for 304 (not modified) responses.
%{TransformedUrl}rThe final URL after all ruleset transformations.
%{ httpRequestHeader }iThe value of the specified HTTP request header.
%{ httpResponseHeader }The value of the specified HTTP response header.

Default is "%G %a %s %{ProcessingStatus}r %{Size}r %D %{ParseTime}r %{FetchTime}r %O %{ReqType}r '%{RootId}r' %{CacheUse}r %R [%I] '%{Referer}i' %{Host}i %{X-Forwarded-For}i %{If-None-Match}i %{If-Match}i %{If-Modified-Since}i %{Digest}r %{ContentType}r %p %{Exception}r %{CacheKey}r %{PeerServer}" %{SendTime}r %{Context}r %{TransformedUrl}r %{PathBasedAccess}r.

Experience Manager