By default, log and repository cleanup is enabled and runs automatically at 3:00 A.M. daily. It deletes all the logs and repository files that are older than five days. You can configure the cleanup schedule and retain time by performing the following steps:
- Click Accounts > Settings.
- Expand the Server Node Settings in the left panel.
- Select the server node.
- Click Edit.
- Click to expand Maintenance.
- Click to expand the Log Cleanup Properties.
Change the value of the following properties as per your need.
Property Name
Description
abpm.appmanagement.logCleanupCronExpression Define the time in the Cron expression when you want to run the log and repository cleanup. For example, for 8 PM you need to define 0 0 20 * * ?. For information on how to define the Cron expression, click here. abpm.appmanagement.retainTime Define the retain time for repository files. It is recommended to leave this property blank. When this property is blank, the retain time defined for logs within log-cleanup.properties file is used as retain time for data also. abpm.appmanagement.logCleanupPropertiesFile Define the path of log-cleanup.properties file. Log-cleanup.properties file contains the retain information about different log tables. By default, this file is located in .../AdeptiaServer-x.x/ServerKernel/etc folder. It is recommended not to change the value of this property. - Click Save.
- To reload the configuration, click Reload Configuration link.
A confirmation message is displayed that the configuration has been reloaded. - Restart the Connect Server.
To change the retain time for logs, go to .../AdeptiaServer-x.x/ServerKernel/etc/log-cleanup.properties file and change the retain time of the property associated with that particular log. The below table shows the list of retain-time property of various logs within the log-cleanup.properties file.
Property Name
Logs
abpm.AU_LOG.logRetainTime System Logs, Audit Trail Logs and Process Flow Logs abpm.AU_TRANSACTIONDATA.logRetainTime Process Flow Logs abpm.AU_EVENTLOG.logRetainTime Event Logs abpm.AU_TASKLOGS.logRetainTime Task History abpm.AU_PROCESSVARIABLETRACKER.logRetainTime Solution Dashboard abpm.AU_TRANSACTIONLOG.logRetainTime Process flow logs abpm.EDI.logRetainTime B2Bi logs It is recommended that you should not change any property other than the retain time properties.
It is recommended to define same retain time for different logs to maintain the consistency within all logs. However, you can define different retain time for different logs.
Log Cleanup does not delete logs of those process flows that are in the running/waiting state. This means that, if a process flow is in the running/waiting state for more days than the days specified in the retain time properties of logs then, the Log Cleanup will not delete the logs of that particular process flow.
- Save the file.
- Restart Kernel and WebRunner.