Logging
Logs and Log Levels
Oracle GoldenGate Veridata maintains logs for both the agent and the server, helping with monitoring, troubleshooting, and performance analysis.
-
The agent generates:
-
Main logs
-
Query logs for executed SQL queries
-
Performance logs for tracking execution efficiency
-
Veridata agent logs are categorized into different log levels to control the verbosity of logging:
-
TRACE– Detailed debugging information -
NOTIFICATION– General operational messages -
WARNING– Potential issues that may require attention -
ERROR– Errors that impact functionality but do not stop execution -
INCIDENT_ERROR– Critical errors requiring immediate action -
The server generates:
-
Server logs
-
Api logs
-
Performance logs for monitoring system performance
-
Repository logs containing the SQL queries, transactions and changes made with the Veridata repository
-
Veridata server logs are categorized into different log levels to control the verbosity of logging:
SEVERE
Indicates serious failures that require immediate attention.
WARNING
Indicates potential problems that might cause issues in the future.
INFO
Used for general information messages about the application’s normal execution.
FINE
Provides general tracing information for debugging.
FINER
More detailed tracing messages than FINE.
FINEST(Lowest priority)
Most detailed tracing information, usually at a very granular level.
- ALL
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:
-
General Configuration Logs:
<INVENTORY_LOCATION>/logs/OGGCAConfigActions/oggcaConfigAction.log -
Schema Migration Logs:
<APP_HOME>/veridata/logs/vdt_schema_migration.log -
Post-run Logs:
<APP_HOME>/bin/ca_run_veridata_nohup.out
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
-
Modify the
odl.xmlfile and change level fromNOTIFICATIONtoTRACEfor logger with nameoracle.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> -
Restart the agent.
If this logger is not present in odl.xml then:
-
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> -
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>
-
-
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
-
Modify the
odl.xmlfile and change level fromNOTIFICATIONtoTRACEfor loggers having nameoracle.veridata.agent.query.<logger name='oracle.veridata.agent.query' level='TRACE:1' useParentHandlers='false'> <handler name='odl-handler' /> <handler name='my-console-handler' /> </logger> -
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:
-
maxFileSize - Defines the maximum size (in bytes) a log file can reach before it gets rotated and a new log file is created.
-
maxLogSize - It controls the max log size (in bytes) before rolling over.
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
-
Click Connections in the navigation pane.
-
In the connections list, click the download icon next to the connection, to download the
veridata-agent.logandveridata-perf.logfrom 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:
-
**vdtapi.log**Server API logs are recorded in
vdtapi.log. -
**vdtserver.log**The Server logs are recorded in
vdtserver.log. -
**vdtperf.log**Server performance logs are recorded in
vdtperf.log. -
**vdtrepo.log**Server repository logs are recorded in
vdtrepo.log.
Note:
-
For all categories of log files, the log file names are of the format
vdt.log.n, wherenis0,1,2...., and contain older logs. -
For each type of log file,
vdt.log.0will have the latest logs. -
Log configurations can also be updated from the config file located at: ```/config/logging.properties`.
-
If you update the config file, you will need to restart the server.
-
You can avoid a restart by using APIs. See Updating Server Log Levels.
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:
-
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
levelandnamepairs:logParameters:[ { "level":<desired_log_level>, "name": <log name> }, { "level":<desired_log_level>, "name": <log name> } ]Supported values are :
OFF,INFO,SEVERE,FINEST -
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. -
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. -
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:
-
FileHandler.limit - Defines the maximum size (in bytes) a log file can reach before it is rotated (a new file is created). This is basically the size of 1 log file.
-
FileHandler.count - Defines the number of log files to keep in the rotation. When the number of log files exceeds count, the oldest file is deleted.
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.