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

Logging 9-29 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. Click the Rollover Policies tab, and click Create.

The Create Rollover Policy dialog box displays. You can use the rollover options in combination. For example, you can use both Rollover by Time and Rollover by Size or both Retention by Size and Retention by Time . Oracle Web Cache performs rollover based on whichever is reached first.

4. In the Policy Name field, enter a unique name for the rollover policy, keeping the

following restrictions in mind: ■ The policy name cannot contain any spaces or special characters other than underscore _. ■ The name must be unique among other policy names, log format style names, and session names.

5. In the Rollover by Time section, select Never, Hourly, Daily, Weekly to specify

how often you want Oracle Web Cache to save current log information to access_log_file.yyyymmddhhmm and write future log information to a new log file with the configured log file name. If you have a high-volume site, select Daily or Hourly. 6. In the Rollover by Time section, select Never, Hourly, Daily, Weekly to specify how often you want Oracle Web Cache to save current log information to access_log_file.yyyymmddhhmm and write future log information to a new log file with the configured log file name. If you have a high-volume site, select Daily or Hourly. For Hourly, Daily, and Weekly, enter a new time in the left-hand side fields and menus and add it to the schedule by clicking Add. Table 9–11 describes specific configuration instructions for Hourly, Daily, and Weekly. Table 9–11 Configuring Rollover By Time Policy To configure: Hourly 1. Enter a value in the field to reflect the minutes after the hour. The default 0 means at the start of the hour. 2. Click Add. 3. From the Time Style list, select either Local or GMT Greenwich Mean Time . Daily 1. Enter a value in the hours and minutes fields. The default 0 means at the start of the day. 2. Click Add. 3. From the Time Style list, select either Local or GMT. 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 . 9-30 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.

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

rollover occurs. Specify 0 for unlimited size.

8. 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.

9. 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.

10. Click OK to apply changes and return to the Access Log Configuration page.

11. Click Apply in the Access Log Configuration page to apply this change.

9.7 Viewing Event Logs and Access Logs

To view events logs, use either the Fusion Middleware Control or the WLST listLogs command. See the following documentation resources: ■ Oracle Fusion Middleware Administrators Guide for details on the various tools for viewing event logs ■ Oracle Fusion Middleware Error Messages Reference describes the event log messages in further detail. To view access logs, use any text editor.

9.8 Rolling Over Event and Access Logs

In addition to configuring event and access log rollover frequency, you can immediately roll over event and access logs. During the rollover process, Oracle Web Cache saves current information to lot file and writes future log information to a new log file with the configured log file name. To immediately roll over log files: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Operations and then On Demand Rollover.

9.9 Using Audit Logs

Oracle Web Cache supports the Common Audit Framework for providing a uniform system for administering audits across Oracle Fusion Middleware components. The audit log files generated by Oracle Web Cache processes provide important information that can help you identify and diagnose potential security performance and configuration issues.