21 Rotating PDC Log Files

Learn how to rotate log files for your Oracle Communications Pricing Design Center application to prevent them from growing too large.

Topics in this document:

About Rotating PDC Log Files

During log file rotation, PDC cloud native writes to a log file until it reaches a maximum size. It then closes the log file and starts writing to a new log file. Rotation prevents your log files from growing too large, making them slow to open and search.

You can set these log file rotation properties for PDC applications:

  • Log level: Sets the logging level, which can be SEVERE, WARNING, INFO, CONFIG, FINE, FINER, or FINEST.

  • Log limit: Sets the log files' maximum file size in bytes. After the log file meets the maximum, PDC closes the log file and creates a new log file.

  • Log file count: Specifies the maximum number of log files to retain for the application.

  • Persist log setting: Specifies whether to persist log files in the database after they are closed. Possible values are:

    • enabled or all: Persists all log files.

    • disabled: Does not persist log files.

    • failed: Persists failed log files only.

    Note:

    Only Real-Time Rating Engine (RRE) and Batch Rating Engine (BRE) transaction log files and ImportExportPricing log files can be persisted.

Table 21-1 lists the PDC application's default log file rotation settings.

Table 21-1 PDC Application Log Files

PDC Application Name or Log File Default Log Level Default Log Limit Default Log File Count Default Persist Log Setting
Pricing Server Log

WARNING

500000

50

N/A

Pricing Server Trace Log

WARNING

500000

50

N/A

ImportExportPricing utility

WARNING

1048576 (1 MB)

100 failed

SyncPDC utility

WARNING

20000

10

N/A

RRE/BRE Transformation Master Log

WARNING

50000

50

N/A

RRE/BRE Transaction Logs

WARNING

N/A

N/A

failed

The following sections show how to configure log file rotation for PDC cloud native applications.

Configuring Pricing Server Log File Rotation

This shows sample override-values.yaml keys for oc-cn-op-job-helm-chart. It configures log file rotation for the Pricing Server logs and tracer logs:

ocpdc:
   configEnv:
      pdcAppLogLevel: WARNING
      pdcAppLogFileSize: 500000
      pdcAppLogFileCount: 50

Configuring ImportExportPricing Log File Rotation

This shows sample override-values.yaml keys for oc-cn-helm-chart. It configures log file rotation for the ImportExportPricing utility:

ocpdc:
   configEnv:
      importExport:
         logLevel: SEVERE
         logSize: 50000
         logCount: 100
         persistIELogs: true

Configuring SyncPDC Log File Rotation

This shows sample override-values.yaml keys for oc-cn-helm-chart. It configures log file rotation for the SyncPDC utility:

ocpdc:
   configEnv:
      syncPDC:
         logLevel: INFO
         logFileSize: 50000
         logFileCount: 100

Configuring RRE/BRE Log File Rotation

This shows sample override-values.yaml keys for oc-cn-helm-chart. It configures log file rotation for the RRE/BRE transformation master log and transaction logs:

ocpdc:
   configEnv:
      transformation:
         logLevel: INFO
         logFileSize: 50000
         logFileCount: 100
         persistTransactionLogs: failed