Configuring Persistent Transaction Logs

This section describes how to configure the persistent transaction log parameters.

The transaction logs are saved in the transaction log file that resides in the transaction logs directory of OAM pod.

Use the following sample configuration to configure the persistent transaction logs:

config 
  logging transaction persist enable { max-file-size | max-rotation } 
  end 

NOTES:

  • logging transaction – Enter the transaction log configuration mode.

  • persist enable { max-file-size | max-rotation } – Configure the option to enable writing of transaction logs to the transaction log file.

    • max-file-size max_filesize – Specify the maximum size (in MB) of the transaction logs that must be preserved in the file. The default size is 50 MB. The accepted range is 1-10000 MB.

    • max-rotation max_rotation – Specify the maximum number of files that must be stored in the folder. After reaching the specified number, the file rotation begins. With this rotation, the oldest file is deleted and the latest log file is added to the folder. For example, if the folder has files a1.txt–a.10.txt and when the a.11.txt is added, then a1.txt is deleted. The default number is 10. The accepted range is 2 -1000.

  • persist enable – Disables writing of transaction logs to the transaction log file.