You can change any of the default log file settings for a virtual target.
To specify HTTP log file settings for a virtual target:
If the table is empty, refer to Create a new virtual target.
To include a time or date stamp in the file name when the log
file is rotated, in the Log file name field,
variables to the file name. Surround each variable with percentage
For example, if you enter the following value in the Log file name field:access_%yyyy%_%MM%_%dd%_%hh%_%mm%.log
the virtual target'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 April, 2015 at 10:05 AM, the log
file that contains the old log messages will be named:
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:
At the time that you specify, the server rotates the current
log file. If the time that you specify has already past, then
the server starts its file rotation immediately. Thereafter, the
server rotates the log file at an interval that you specify in
Rotation interval. Use the following
java.text.SimpleDateFormat format to specify a
date and time: MM-DD-yyyy-k:mm:ss.
For information on how to set up the logs, see Setting Up HTTP Access Logs by Using Extended Log Format.