Review the settings. If the settings are correct, click Apply to apply the changes. If

7-6 Oracle Fusion Middleware Administrators Guide for Oracle HTTP Server

2. Select Log Configuration from the Administration menu.

The following access log configuration tasks can be set from this page: ■ Configuring the Access Log Format ■ Configuring the Access Log File

7.2.2.1 Configuring the Access Log Format

Log format specifies the information included in the access log file and the manner in which it is written. To add a new access log format or to edit or remove an existing format, do the following:

1. From the Log Configuration page, navigate to the Access Log section.

2. Click Manage Log Formats.

The Manage Custom Access Log Formats page is displayed, as shown in the following figure.

3. Select an existing format to change or remove, or click Add Row to create a new

format. 4. If you choose to create a new format, then enter the new log format in the Log Format Name field and the log format in the Log Format Pattern field.

5. Click OK to save the new format.

7.2.2.2 Configuring the Access Log File

To configure an access log for file Oracle HTTP Server, do the following:

1. From the Log Configuration page, navigate to the Access Log section.

2. Click Create to create a new access log, or select a row from the table and click

Edit button to edit an existing access log file. The Create or Edit Access Log page is displayed. See Also: Refer to the Apache documentation for information about log format directives. Managing Oracle HTTP Server Logs 7-7 3. Enter the path for the access log in the Log File Path field. This directory must exist before you enter it. 4. Select an existing access log format from the Log Format menu. 5. Select a rotation policy. ■ No Rotation – if you do not want to have the log file rotated ever. ■ Size Based – rotate the log file whenever it reaches a configured size. Set the maximum size for the log file in Maximum Log File Size MB field and the maximum number of error log files to retain in Maximum Files to Retain field. ■ Time Based – rotate the log file whenever configured time is reached. Set the start time, rotation frequency, and retention period.

6. Click OK to continue.

Note that you can create multiple access log files.

7.3 Log Directives for Oracle HTTP Server

This section discuss Oracle HTTP Server error and access log-related directives in the httpd.conf file. The directives discussed are: ■ Oracle Diagnostic Logging Directives ■ Apache Log Directives

7.3.1 Oracle Diagnostic Logging Directives

Oracle HTTP Server by default uses Oracle Diagnostic Logging ODL for generating diagnostic messages. The following directives are used to setup logging using ODL: ■ OraLogMode ■ OraLogDir ■ OraLogSeverity ■ OraLogRotationParams

7.3.1.1 OraLogMode

Enables you to choose the format in which you want to generate log messages. You can choose to generate log messages in the legacy Apache, ODL text, or ODL XML format. OraLogMode Apache | ODL-Text | ODL-XML Default value: ODL-Text For example: OraLogMode ODL-XML