Access logging access-logging

Use these server settings for logging access.


TC::directory - Log File Folder section-5d9e2168d4504bbe9868b7d6051c9d67

The folder to which the Platform Server writes log files. This can be an absolute path or a path relative to install_folder. Default is install_folder/logs.

The new folder must be created before changing this setting. Make sure the folder has the correct read/write access privileges if Image Serving is installed to run under a user account other than root.

TC::maxDays - Number of Days to Keep Log Files section-45cbecffc5694c87b7d5c176a44a4885

The number of days log files should be preserved. New log files are created every day at midnight. At this time, the server deletes all files in the log file folder that are older than the specified number of days, including those written by the Image Server or Render Server. Default is 10.

TC::prefix - Access Log File Name section-1003856323b844049632710a5a056aa7

Name prefix for the file to which access log data is written. The date and the file suffix ( yyyy- mm- dd.log) are appended to the specified string. The name of the access log file must be different from that of the trace log file. Default is " access-".

TC::pattern - Access Log Pattern section-22775ea85cee444d8a7d7336a3b1feef

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:

Remote IP address.
Local IP address.
Response byte count excluding HTTP headers, or ' ' if zero.
Response byte count excluding HTTP headers.
Request processing time in milliseconds.
thread id (for cross-referencing debug/error log entries).

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.

Request method ( GET , POST , and so forth).
Request overlap (number of requests processed concurrently).
Local port on which this request was received.
Query string (prepended with a '?' if it exists).
First line of request (request method, URI, HTTP version).
Same as %r , but applies limited HTTP-encoding to the URI to avoid log parsing problems.
HTTP response status code.
User session ID.
Date and time, in Common Log Format.
Remote user that was authenticated (if any), else ''.
URI path.
Local server name.
Request processing time in seconds.
Platform Server cache key (cache file folder/name).
The response MIME type.
The destination context if a context forward occurs.
The etag response header value (MD5 signature of the response data).
Error message.
Time taken to retrieve cache entry or data from Image Server.
Time taken for request parsing and image catalog lookup.
Indicates whether or not this request attempted any path-based access outside of the catalog system.
IP address of the peer server in the cache cluster which delivered the cache entry or '-' if CacheUse is neither REMOTE_CREATED nor REMOTE_UPDATED .

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.

The upper-cased value of req= .
The root id of the request's main catalog.
The time it takes Platform Server to send response after writing data to the output stream.
Like %B , but includes values for 304 (not modified) responses.
The final URL after all ruleset transformations.
%{ httpRequestHeader }i
The 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.