By default, the HTTP subsystem
keeps a log of all HTTP transactions in a text file. The default
location and rotation policy for HTTP access logs is the same as the
server log, in the
logs directory below the server
instance root directory. See Change server log file
name and location.
You can set the attributes that define the behavior of HTTP access logs for each server or for each virtual host that you define. See Configure HTTP log file settings for a virtual host.
For more information about the values to enter in the fields on this page, see Configuration Options.
Enter an absolute pathname or a pathname that is relative to the server's root directory. If you use the Node Manager to start a Managed Server, the root directory is located on the computer that hosts the Node Manager process. For more information, see A Server's Root Directory.
java.text.SimpleDateFormatvariables to the file name and surround each variable with percentage (
For example, if you enter the following value in the Log
File Name field:
the virtual host's HTTP log file will be named:
When the server instance rotates the HTTP log file, the rotated
file name contains the date stamp. For example, if the server
instance rotates the log file on 2 Jan, 2005 at 10:05 AM, the
log file that contains the old log messages will be named:
access_2005_01_02_10_05.log. If you do not
include a time and date stamp, the rotated log files are
numbered in order of creation
filename is the name configured for the
log file. For example, access.log00007.
Use the following
format to specify a date and time: MM-DD-yyyy-k:mm:ss. For
information about this format, refer to the J2EE Javadoc.
At the time that you specify, the server rotates the current log file. If the time that you specify is already past, the server starts its file rotation immediately. Thereafter, the server rotates the HTTP log file at an interval that you specify in Rotation Interval.
Enter an absolute pathname or a pathname that is relative to the server's root directory. By default, the rotated files are stored in the same directory where the log file is stored.
For more information, see Setting Up HTTP Access Logs by Using Extended Log Format.
After you finish
Restart the server.