JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Fusion Middleware Administration Guide for Oracle Unified Directory 11g Release 1 (11.1.1)
search filter icon
search icon

Document Information

Preface

1.  Starting and Stopping the Server

2.  Configuring the Server Instance

3.  Configuring the Proxy Components

4.  Configuring Security Between Clients and Servers

5.  Configuring Security Between the Proxy and the Data Source

6.  Managing Oracle Unified Directory With Oracle Directory Services Manager

7.  Managing Directory Data

8.  Replicating Directory Data

9.  Controlling Access To Data

10.  Managing Users and Groups With dsconfig

11.  Managing Password Policies

12.  Managing Directory Schema

13.  Monitoring Oracle Unified Directory

Monitoring Overview

Configuring Monitor Providers

To View Monitor Providers

To Disable a Monitor Provider

Configuring Logs With the Log Publisher

Log Configuration Overview

Configuring Log Publishers

To List Existing Log Publishers

Logging Internal Operations

Configuring Log Retention Policies

To View the Log Retention Policies

To Create a Log Retention Policy

To Modify a Log Retention Policy

Configuring Log Rotation Policies

To View the Log Rotation Policies

To Create a Log Rotation Policy

To Set Log Rotation or Retention for a Specific Log File

Differences Between Logging in Oracle Unified Directory and Oracle Directory Server Enterprise Edition

Configuring Alerts and Account Status Notification Handlers

Managing Alert Handlers

To View All Configured Alert Handlers

To Enable an Alert Handler

To Configure an Alert Handler

Supported Alert Types

To Delete an Alert Handler

To Disable an Alert Type

Managing Account Status Notification Handlers

To View the Configured Account Status Notification Handlers

To Enable Account Status Notification Handlers

To Create a New Account Status Notification Handler

To Delete an Account Status Notification Handler

Monitoring the Server With LDAP

Viewing Monitoring Information Using the cn=monitor Entry

Monitored Attributes in the Oracle Unified Directory proxy

To View the Available Monitoring Information

To Monitor General-Purpose Server Information

To Monitor System Information

To Monitor Version Information

To Monitor the User Root Back End

To Monitor the Backup Back End

To Monitor the Tasks Back End

To Monitor the monitor Back End

To Monitor the Schema Back End

To Monitor the adminRoot Back End

To Monitor the ads-truststore Back End

To Monitor Client Connections

To Monitor the LDAP Connection Handler

To Monitor LDAP Connection Handler Statistics

To Monitor Connections on the LDAP Connection Handler

To Monitor the Administration Connector

To Monitor Administration Connector Statistics

To Monitor Connections on the Administration Connector

To Monitor the LDIF Connection Handler

To Monitor the Work Queue

To Monitor JVM Stack Trace Information

To Monitor the JVM Memory Usage

To Monitor the userRoot Database Environment

To Monitor the Entry Cache

To Monitor Network Groups

To Monitor Distributions

To Monitor Load Balancing

To Monitor Remote LDAP Servers

To Monitor a Global Index

To Monitor a Global Index Catalog

Monitoring Using the manage-tasks Command

Monitoring the Server With JConsole

To Configure JMX on a Server Instance

Starting JConsole

Accessing a Server Instance From JConsole

Viewing Monitoring Information With JConsole

Accessing Logs

To View the Access Logs

To View the Audit Logs

To View the Debug Logs

To View the Error Logs

To View the Replication Repair Logs

To View the server.out Logs

To View the vdp-setup Logs

Monitoring the Server With SNMP

Configuring the SNMP Connection Handler and Its Dependencies

To Configure SNMP in the Server

To View the SNMP Connection Handler Properties

To Access SNMP on a Server Instance

SNMP Security Configuration

SNMP Security Configuration: V1 and V2c

SNMP Security Configuration: V3

SNMP USM Configuration: V3

Monitoring a Replicated Topology

Monitoring Replication Status With dsreplication

Advanced Replication Monitoring

To Monitor the Topology and Its Connections

To Monitor Replication Latency

To Monitor Data Consistency

To Monitor Replication Security

To Monitor Replicated Updates

To Monitor Replication Conflicts

General Purpose Enterprise Monitoring Solutions

General UNIX Monitoring Tools

Solaris Monitoring Tools

HP-UX Monitoring Tools

14.  Tuning Performance

15.  Advanced Administration

Configuring Logs With the Log Publisher

Oracle Unified Directory provides several types of logs: access logs, audit logs, error logs, debug logs, and a replication repair log. The replication repair log is read-only and its use is restricted to enabling replication conflict resolution. This section describes how to use dsconfig to configure access, audit, error, and debug logs.

Log Configuration Overview

The easiest way to configure logging is to use the dsconfig command in interactive mode, which walks you through the configuration. This section provides the required commands in non-interactive mode. For more information about dsconfig, see Managing the Server Configuration With dsconfig.

Log configuration includes the definition of three configuration objects:

Configuring Log Publishers

Oracle Unified Directory provides several log publishers by default.

Any number of log publishers of any type can be defined and active at any time. This means that you can log to different locations or different types of repositories and that you can specify various sets of criteria for what to include in the logs.

For more information about the configuration properties associated with log publishers, see the Oracle Unified Directory Configuration Reference..

Oracle Unified Directory can also write diagnostic log files in the Oracle Diagnostic Logging (ODL) format. ODL is disabled by default. To enable ODL, set the enabled property of the ODL Access Log publisher or the ODL Error Log publisher to true, as follows:

$ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \ 
  set-log-publisher-prop --publisher-name "Oracle Access Logger" --set enabled:true

To List Existing Log Publishers

  1. To view the existing log publishers run the following dsconfig command:
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
      list-log-publishers 

    The default output will be similar to the following:

    Log Publisher             : Type              : enabled
    --------------------------:-------------------:--------
    File-Based Access Logger  : file-based-access : true
    File-Based Audit Logger   : file-based-access : false
    File-Based Debug Logger   : file-based-debug  : false
    File-Based Error Logger   : file-based-error  : true
    Oracle Access Logger      : file-based-access : false
    Oracle Error Logger       : file-based-error  : false
    Replication Repair Logger : file-based-error  : true
  2. (Optional) To display the properties of a log publisher run the following dsconfig command:
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
      get-log-publisher-prop --publisher-name "File-Based Error Logger"
Logging Internal Operations

By default, the suppress-internal-logging property for log publishers is set to true. If you need to log internal operations (such as operations performed by the LDIF connection handler and certain plug-ins), set suppress-internal-logging to false. The following example sets suppress-internal-logging to false for the file-based access logger:

$ dsconfig -h localhost -p 4444 -D "cn=directory manager" -w password -n \
  set-log-publisher-prop \
  --advanced --publisher-name "File-Based Access Logger" \
  --set suppress-internal-operations:false

Configuring Log Retention Policies

Log retention policies dictate size and space limits for log files. Oracle Unified Directory provides the following three log retention policies:

By default, the log retention policy that is enabled is File count retention.

You can also create your own custom log retention policies.

To View the Log Retention Policies

  1. To view a list of the existing log retention policies run the following dsconfig command:
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
      list-log-retention-policies 

    The default output will be similar to the following:

    Log Retention Policy             : Type            : disk-space-used : free-disk-space : number-of-files
    ---------------------------------:-----------------:-----------------:-----------------:----------------
    File Count Retention Policy      : file-count      : -               : -               : 10
    Free Disk Space Retention Policy : free-disk-space : -               : 500 mb          : -
    Size Limit Retention Policy      : size-limit      : 500 mb          : -               : - 
  2. (Optional) To list the log retention policy properties run the following dsconfig command
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
    get-log-retention-policy-prop --policy-name "Free Disk Space Retention Policy"

To Create a Log Retention Policy

To Modify a Log Retention Policy

Configuring Log Rotation Policies

Log rotation policies dictate how often the files are rotated, that is to say, how long log files are kept based on various criteria. Oracle Unified Directory provides the following four log rotation policies:

The type of log rotation policy enabled by default depends on the log type.

You can create your own custom log rotation policies.


Note - When multiple rotation policies are specified for the same log, the first threshold that is reached triggers the rotation.


To View the Log Rotation Policies

  1. To view a list of the existing log rotation policies run the following dsconfig command:
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
    list-log-rotation-policies 

    The default output will be similar to the following:

    Log Rotation Policy                 : Type       : file-size-limit : rotation-interval : time-of-day
    ------------------------------------:------------:-----------------:-------------------:------------
    24 Hours Time Limit Rotation Policy : time-limit : -               : 1 d               : -
    7 Days Time Limit Rotation Policy   : time-limit : -               : 1 w               : -
    Fixed Time Rotation Policy          : fixed-time : -               : -                 : 2359
    Size Limit Rotation Policy          : size-limit : 100 mb          : -                 : - 
  2. (Optional) To list the log rotation policy properties, type
    $ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \
    get-log-rotation-policy-prop "Fixed Time Rotation Policy"

To Create a Log Rotation Policy

To Set Log Rotation or Retention for a Specific Log File

In order to set a log rotation policy on a specific log file, you must create a log publisher and set the log rotation or log retention policy.

Differences Between Logging in Oracle Unified Directory and Oracle Directory Server Enterprise Edition

The logging architectures of Oracle Unified Directory and Oracle Directory Server Enterprise Edition differ significantly. The most notable differences include the following:


Note - The current Oracle Unified Directory logging mechanism cannot easily be used to define filters that restrict the types of content to include in the log.