Logging

Logs and Log Levels

Oracle GoldenGate Veridata maintains logs for both the agent and the server, helping with monitoring, troubleshooting, and performance analysis.

Veridata agent logs are categorized into different log levels to control the verbosity of logging:

Veridata server logs are categorized into different log levels to control the verbosity of logging:

Indicates serious failures that require immediate attention.

Indicates potential problems that might cause issues in the future.

Used for general information messages about the application’s normal execution.

Provides general tracing information for debugging.

More detailed tracing messages than FINE.

Most detailed tracing information, usually at a very granular level.

Captures all messages at all levels (from FINEST to SEVERE).

Note: Production systems typically log at INFO or WARNING levels. Debugging scenarios may use FINE, FINER, or FINEST.

You can modify server log levels from the Settings page on the Home screen. For more information, see Settings.

Installer Logs

Installer logs are written to the Oracle inventory location:

<INVENTORY_LOCATION>/logs/installActions<timestamp>.log

Configuration Assistant Logs

The logs generated by the Veridata Configuration Assistant are available at the following locations:

Agent

Agent Logs Location

Agent logs are stored in the following directory: $AGENT_DEPLOYED_LOCATION/logs/

The main agent logs are recorded in: veridata-agent.log.

The performance logs are stored in: vdtperf-agent.log.

Updating Agent Log Settings

You can configure the Agent log settings in the odl.xml file.

File Location: $AGENT_DEPLOYED_LOCATION/config/odl.xml

Enabling Performance Logs

  1. Modify the odl.xml file and change level from NOTIFICATION to TRACE for logger with name oracle.veridata.agent.performance.

    For example:

    <logger name='oracle.veridata.agent.performance' level='TRACE:1'
                useParentHandlers='false'>
                <handler name='perf-handler' />
                <handler name='my-console-handler' />
     </logger>
  2. Restart the agent.

    If this logger is not present in odl.xml then:

    1. Add below log handler under <log_handlers>

      <log_handler name='perf-handler'
            class='oracle.core.ojdl.logging.ODLHandlerFactory'>
          <property name='path' value='${agentHome}/logs/vdtperf-${agent.id}.log' />
          <property name='maxFileSize' value='10485760' />
         <property name='maxLogSize' value='104857600' />
         <property name='useSourceClassAndMethod' value='TRACE:1' />
      </log_handler>
    2. Under the <loggers> tag add the following:

      <logger name='oracle.veridata.agent.performance' level='TRACE:1'
                  useParentHandlers='false'>
                  <handler name='perf-handler' />
                  <handler name='my-console-handler' />
       </logger>
  3. Restart the agent.

Enabling Trace Logs

Modify the odl.xml file and change level from NOTIFICATION to TRACE for loggers having name oracle.veridata. Restart the agent.

For example:

<logger name='oracle.veridata' level='TRACE:1'
            useParentHandlers='false'>
            <handler name='odl-handler' />
            <handler name='my-console-handler' />
</logger>
<logger name='oracle.veridata.XML'  level='TRACE:1'
            useParentHandlers='false'>
            <handler name='odl-handler' />
            <handler name='my-console-handler'/>
</logger>

Enabling Query Logs

  1. Modify the odl.xml file and change level from NOTIFICATION to TRACE for loggers having name oracle.veridata.agent.query.

    <logger name='oracle.veridata.agent.query' level='TRACE:1'
                useParentHandlers='false'>
                <handler name='odl-handler' />
                <handler name='my-console-handler' />
    </logger>
  2. Restart the agent.

Modifying Log Size

The log rotation is enabled by default, and therefore older logs get deleted when log size reached a certain size. However, this can be controlled as described below.

Log size is specified per log handler in the odl.xml file. This is controlled by the following 2 properties:

For all the logs:

Find the log handler with name odl-handler and change values of maxFileSize and maxLogSize, then restart the agent.

<log_handler name='odl-handler'
            class='oracle.core.ojdl.logging.ODLHandlerFactory'>
            <property name='path' value='${agentHome}/logs/veridata-${agent.id}.log' />
            <property name='maxFileSize' value='10485760' />
            <property name='maxLogSize' value='104857600' />
            <property name='useSourceClassAndMethod' value='TRACE:1' />
        </log_handler>

For Performance Logs:

Find the log handler with name perf-handler and change values of maxFileSize and maxLogSize, then restart the agent.

<log_handler name='perf-handler'
      class='oracle.core.ojdl.logging.ODLHandlerFactory'>
    <property name='path' value='${agentHome}/logs/vdtperf-${agent.id}.log' />
    <property name='maxFileSize' value='10485760' />
   <property name='maxLogSize' value='104857600' />
   <property name='useSourceClassAndMethod' value='TRACE:1' />
</log_handler>

Note: Values of maxFileSize and maxLogSize are in bytes, therefore 10485760 is 10 MB.

Downloading Agent Logs from the UI

  1. Click Connections in the navigation pane.

  2. In the connections list, click the download icon next to the connection, to download the veridata-agent.log and veridata-perf.log from the corresponding agent.

Server

Server Log Location

All the Server logs are stored in the following directory: <VERIDATA_HOME>/veridata/logs.

There are four types of log files to store differnet type of logs:

Note:

Updating Server Log Levels

Server log levels can be configured using update log config API. For more information, see REST API for GoldenGate Veridata. This API will be used to set log levels for:

  1. Setting Log Levels for All Logs:

    To apply desired log levels to all logs at once, either same level or different for each log type, send the following request body with comma separated level and name pairs:

    logParameters:[
      {
        "level":<desired_log_level>,
        "name": <log name>
      },
      {
        "level":<desired_log_level>,
        "name": <log name>
      }
    ]

    Supported values are : OFF, INFO, SEVERE, FINEST

  2. Configuring Server Logs

    To modify the server log level, use the following request body:

    {
        "level": <desired_log_level>,
        "name":  "oracle.veridata.server"
    }

    Supported log level values are : OFF, INFO, FINEST, SEVERE.

    Default value is INFO.

  3. Configuring Performance Logs:

    To enable performance logging, use the following request body:

    {
            "level": <desired_log_level>,
            "name":  "oracle.veridata.server.performance"
    }

    Supported log level values are : OFF, INFO, FINEST, SEVERE.

    Default value is INFO.

  4. Configuring Repository Logs:

    To enable performance logging, use the following request body:

    {
            "level": <desired_log_level>,
            "name":  "oracle.veridata.repo"
    }

    Supported log level values are : OFF, FINEST, SEVERE.

    Default value is OFF.

Changing Log Size

Log rotation is enabled by default, to ensure older logs are deleted when they reach a specified size.

Log size is controlled by <VERIDATA_HOME>/config/logging.properties file, where each log handler has two key properties:

For example: To change the file size to 10MB and log file count to 10 for perf logs, modify as follows:

com.oracle.goldengate.veridata.logging.PerfFileHandler.limit=10485760
    com.oracle.goldengate.veridata.logging.PerfFileHandler.count=10

Note that you will need to restart the server after this update.

Downloading Server Logs from the UI

You can download the Server Logs from the Settings page on the UI. For more information, see Settings.