My Oracle Support Banner

Incorrect 'default-web-access.log' Contents when $Time is used in Format Field (Doc ID 471820.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.3.0 [Release AS10gR3]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

In OC4J 10.1.3.x.0, when the logging format of the default-web-access.log is changed using the following attribute in default-web-site.xml the log output is not correct, ie log entries will be truncated after the ($user) field and append to the current line rather than starting a new line.

default-web-site.xml

<access-log path="../log/default-web-access.log" split="day" format="$ip - $user - [$time]
'$request' $status $size [$cookie:JSESSIONID] [ecid: $header:Oracle-ECID]" />

Incorrect Log Output seen in the default-web-access.log

<IP_ADDRESS> - 'netstore' - - [<IP_ADDRESS> - 'netstore' - - [<IP_ADDRESS> - 'netstore' - - [

Expected Log ouptut

<IP_ADDRESS> - 'netstore' - [11/Dec/2007:18:38:19.765 +] 'GET /store/pc/sys/include/login_esi_inc2.jsp HTTP/1.1' 200 1263 [<JSESSIONID>] [ecid: <ECID]

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.