From the Time Style list, select either Local or GMT Greenwich Mean Time Click Request-Based Logging to enable request-based logging.

9-26 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache To remove a time from the schedule list, select the time, and then click Remove . The value moves to the left list, where you can modify it. See Section 9.8 for instructions on immediately rolling over log files.

d. In the Rollover by Size field, enter the maximum size of the log file size at

which rollover occurs. Specify 0 for unlimited size.

e. In the Retention by Time field, specify how long to keep log files before

purging the oldest ones. In the Every field, enter the quantity and from the list of Hours, Days, Weeks, Months , Years, select the duration. A quantity of 0 means unlimited time, which means Oracle Web Cache does not retain files based on time.

f. In the Retention by Size field, enter the total size of all log files before purging

oldest ones. Specify 0 for unlimited size. This value must be larger than the value you specify for the Rollover Size field. If neither Retention by Time or Retention by Size is set, then log files can grow without limits. The log files could end up consuming all available space on the disk where this file is located.

g. Click OK.

6. Click Apply and restart Oracle Web Cache. See

Section 2.13 .

9.4 Configuring Access Logs

To configure access log settings: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Administration and then Access Logs.

The Access Log Configuration page displays.

3. Specify the following settings for each cache in the Cache-Specific Settings table:

a. In the Directory field, enter the directory in which to write access logs.

By default, the event log is stored in the following directories: UNIX ORACLE_INSTANCEdiagnosticslogsWebCachewebcache_name Windows ORACLE_INSTANCE\diagnostics\logs\WebCache\webcache_name b. Click Enable Logging? to enable logging; deselect to disable logging. c. Click Enable Buffering? to enable buffered logging; deselect the check box to disable buffered logging. Weekly 1. Add a time by selecting a day of the week, and entering values in the hours and minutes fields. The default 0 means at the start of the week. 2. Click Add. 3. From the Time Style list, select either Local or GMT Greenwich Mean Time . Table 9–10 Cont. Configuring Rollover By Time Policy To configure: Logging 9-27 With buffered logging, Oracle Web Cache stores log messages in memory. Oracle Web Cache writes them out in bulk to the access log when the buffer size or the flush interval is reached. The buffer size is set to 2048 bytes. Buffered logging increases performance by reducing the number of disk IO operations. If the Oracle Web Cache server shuts down unexpectedly, buffered log messages may be lost. Oracle recommends disabling buffering to view access log results immediately.

d. If buffering is enabled, in the Flush Interval field, enter the interval, in

seconds, when Oracle Web Cache writes contents of the buffer to the access log file. The default is 10 seconds. When the interval is reached, Oracle Web Cache writes buffered information to the access log file. Even if the buffer is not full, Oracle Web Cache updates the access log. Oracle recommends not changing the default, unless you want to lower the interval to see results more frequently. A value of 0 specifies that Oracle Web Cache will only flush the buffered access log when the specified buffer size has been exceeded.

4. Specify the following settings for each site in the Site-Specific Settings table:

a. If you want to apply the settings from the Default Settings row to this site,

click Use Default for all Sites Settings. Deselect this checkbox to provide site-specific overrides in the other fields.

b. In the File Name field, enter a name for the access log file.

The default file name is access_log.

c. Click Enable Logging to enable logging for the site; deselect to disable logging

for the site. Site-specific logging only takes effect if logging is enabled for the cache. If you enable this option, ensure that it is also selected for the cache in Step 3b. d. Select Log ESI Fragment Requests? to log the ESI fragment log messages from the log element of esi:environment or esi:include in the access_log_file .fragment file. If the x-esi-info field is selected, select to log the events to the access_ log_file .fragment file. The x-esi-info field is automatically selected if the Format Style is End-User Performance Monitoring Format. If the x-esi-info field is not selected, select Dont Log.

e. From the Format Style list, select an access log format.

See Section 9.2.1 for a description of the default formats and Section 9.5 to create a customized style for your environment.

f. From the Rollover Policy list, select a rollover policy to specify how often you

want to change the frequency at which Oracle Web Cache saves current log information to access_log_file.yyyymmddhhmm and writes future log information to a new log file with the configured log file name. For high-volume sites, select a policy with a high frequency. See Section 9.6 to modify an existing policy or create a new rollover policy.

5. Click Apply and restart Oracle Web Cache. See

Section 2.13 .