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

9-28 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache

9.5 Creating a Customized Access Log Format

If the default formats described in Section 9.2.1 are not suitable for your environment, create a new log format: 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 Log Formats tab, and click Create.

The Create Log Format dialog box displays.

4. In the Format Name field, enter a unique name for the format, keeping the

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

5. From the Separator list, select the separator to use for separating access log fields.

6. In Print XLF Directive field, select Yes to include XLF directive information at the

top of the access log or No to not include directive information in the access log. Directive information typically consists of version, date, and field information. For example: Version: 1.0 Date: 12-Jul-2008 00:00:00 Fields: c-ip x-auth-id x-clf-date csHost x-req-line sc-status bytes See http:www.w3.orgTRWD-logfile.html for further information about XLF directives.

7. In the XLF Fields section, select an access log field name from the Field Name list.

See Table 9–5 for a listing of the supported access logs fields 8. If you select csheader_name or sc csheader_name, scheader_name, or x-cookiecookie_name, then enter the header or cookie name in the Header Cookie name field. See Table 9–6 , Table 9–7 , and Table 9–8 for a description of the headers allowed for csheader_name and scheader_name

9. Click Add.

10. Perform Steps 7 and 9 for each format you want in the access log, and then use the Move Up and Move Down buttons to order the fields. The order in which fields are entered determines the order in which the fields are logged.

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

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

9.6 Creating a Customized Access Log Rollover Policy

To modify an existing rollover policy or create a new rollover policy: