Skip Headers
Oracle® Web Services Manager Administrator's Guide
10g (10.1.3.1.0)

Part Number B31008-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

8 Logging Events with Oracle Web Services Manager

This chapter describes the information collected by Oracle Web Services Manager (Oracle WSM). This chapter includes the following sections:

Overview

The Oracle WSM components generate the following types of information:

Low-Level Event and State Logs

Each Oracle WSM component sends event execution and component status information to a local file dedicated to just that component. Such information is useful for monitoring the performance of your Oracle WSM system or debugging components that are not acting as expected. At various levels, this feature reports when the Oracle WSM Policy Manager starts or when a specific method is being executed, and it records a stack trace when certain errors occur.

The application log files can be found in the following location:

ORACLE_HOME/j2ee/instance/log

The variable instance is the name of the OC4J instance into which Oracle WSM is installed. If you install the standalone version of Oracle WSM, the default value of the instance is home.

There, you will find the log files shown in Table 8-1:

Table 8-1 Oracle WSM Application Log Files

Log File Name Contains Log Messages for

ccore.log

Oracle Enterprise Manager 10g Web Services Manager Control

coreman.log

Oracle Web Services Manager Monitor

gateway.log

Oracle Web Services Manager Gateway

policymanager.log

Oracle Web Services Manager Policy Manager

clientagent.log

Oracle Web Services Manager Client Agents

serveragent.log

Oracle Web Services Manager Server Agents


By default, when you install Oracle WSM, the log files for the four components, Web Services Manager Control, Oracle WSM Monitor, Oracle WSM Gateway, and Oracle WSM Policy Manager are automatically created. You will see the log files for the Oracle WSM agents only if you create and deploy client or server agents.

Each application has its own logging configuration file, named logging.xml, which you can use to configure logging. You can find the file at the following location:

ORACLE_HOME/owsm/config/application/logging.xml

The variable application is the name of the Oracle WSM application: ccore, coreman, gateway, policymanager, clientagent, and serveragent. You can configure the following characteristics of the log files: location and name of the log file (File), log level (priority value), log file size (MaxFileSize), and number of backup log files (MaxBackupIndex), by specifying the parameter in the parentheses. Oracle WSM uses the Log4J technology developed by the Apache Group. Refer to the product documentation (http://logging.apache.org) for more information on configuring the log file parameters.

The maximum size of the log file is 10 megabytes, by default. When the log file reaches this maximum, a 1 is appended to the end of the file and messages continue to be logged to the application log file. For example, ccore.log would be renamed ccore.log.1, and messages would continue to be logged to ccore.log. By default, one backup file is created. Therefore, when ccore.log is renamed ccore.log.1, it overwrites any existing backup file with the name ccore.log.1.

You can control the amount of low-level event and state information sent to file by specifying one of the following hierarchical logging levels:

Note:

These values are case-sensitive and must be specified in uppercase.

The log files allow you to specify a different logging level for each class. The following entries from the logging.xml file for Web Services Manager Control show the logging level set to INFO:

<category name="com.cfluent.webui">
        <priority value="INFO" class="com.cfluent.ccore.util.logging.LogLevel"/>
</category>
<category name="com.cfluent.pingengine">
        <priority value="INFO" class="com.cfluent.ccore.util.logging.LogLevel"/>
</category>
<root>
        <priority value="INFO" class="com.cfluent.ccore.util.logging.LogLevel"/>
<appender-ref ref="FILE"/>
</root>

The logging level is specified with the priority value parameter. In most instances, you will not need to configure different log levels for specific classes. To change the log level for the entire component, do a search and replace to change the priority level for all classes to the desired level.

After you change any of the parameters in the logging.xml file, you must redeploy the application for the changes to take effect. See Oracle Web Services Manager Deployment Guide for information on deploying applications.

High-Level Performance Metrics

Policy enforcement points (PEPs) send raw data to the Oracle WSM Monitor, where it is aggregated and compiled to produce high-level indicators pertaining to Web service availability, authentication and authorization results, request latency, and security violations. This information is useful to administrators who want to understand who is accessing the Web services managed by Oracle WSM and how these requests are being handled.

There are two general types of performance metrics:

For high-level performance metrics, your only option is to turn the feature on or off for all metrics. You cannot specify that individual metrics be collected or compiled.

Configuring Agent and Gateway Message Logging

As a feature of policy enforcement, agents and gateways log information from application messages through the use of logging steps specified in agent or gateway enforced policies. See Chapter 5, "Managing Oracle Web Services Manager Policies" for more information on configuring policy steps.

You can configure logging using one or both of the following:

  • Log step in the request pipeline that logs information from the service request.

  • Log step in the response pipeline that logs information from the service response.

You can add a Log step after any policy step within a pipeline and specify the level of logging for each Log step. Therefore, you can control the amount of information gathered.

You can set the logging function to send log data to one of the following:

  • Files located on the same computer as the enforcement component.

  • A database repository located on the network.

By default, the output is sent to the Oracle WSM Database. Optionally, you can send output to both the Oracle WSM Database and a local file.

By default, log files are stored in a logs directory; each log file name includes the time that the log reached its maximum size and log messages were written to the file.

To meet performance requirements, you should locate the message logs topologically close to the PEP. This implies that a highly distributed environment will require multiple distributed logs.

To send the log entries to a file, edit the cfluent.messagelog.type and cfluent.message.file.logDirectory properties for the policy enforcement point. For more information on editing these properties, see "Making Changes to Your Policy Enforcement Points".

Changing Maximum Log Entries

The Asyncwriter writes log messages to the Oracle WSM Database. By default, the Asyncwriter has a buffer for 1000 log entries. If messages are being sent to the Asyncwriter at a faster rate than the Asyncwriter can write the messages to the database, some of these messages will be lost. This is likely to happen in the case where you are stress testing your Oracle WSM system. If this is the case, then increase the value of the cfluent.messagelog.asynwriter.maxEntries property for the policy enforcement point. See "Making Changes to Your Policy Enforcement Points" for more information on editing properties for Oracle WSM components.