CentraSite Documentation : CentraSite Administrator’s Guide : Logging : Purging Logs : Configuring Log Purging from the Command Line : Creating a Configuration File to Define Log Purging : Define Log Purge Type
Define Log Purge Type
The log purge type attributes provide information about the different type of logs configured to be purged on different days, times and even how many days of logs to keep.
You can create the purge type attributes that will be used by the log purge setting definition.
Within the LogPurgeSetting element, create the following attributes (as required) and assign values.
Log Purge Setting
Description
ExportLocation
Specifies a location for the exported files on the database.
Until
Deletes log records and exports them as an archive to a configurable directory that can be imported later.
However, if the export location is not specified, then CentraSite simply deletes the log records.
Note:  
Specify the xs:dateTime values as required. The default time zone is UTC/GMT.
OlderThan
Deletes log records that are older than the specified date and exports them as an archive to a configurable directory that can be imported later.
However, if the export location is not specified, then CentraSite simply deletes the log records.
Note:  
Specify the xs:dateTime values as required. The default time zone is UTC/GMT.
CommitThreshold
Defines the threshold value for batch purging each of the log units. The default threshold value is 10000.
The LogPurgeSetting element should now look similar to this:
<LogPurgeSetting log="Runtime_Event_Log">
<OlderThan>-P5D</OlderThan>
</LogPurgeSetting>
 
<LogPurgeSetting log="Runtime_Performance_Log">
<Until>2002-05-30</Until>
<CommitThreshold>1000</CommitThreshold>
</LogPurgeSetting>
The final config.xml should look similar to this:
<LogPurgeSettings
xmlns="http://namespaces.centrasite.com/configurations/logs">
<LogPurgeSetting log="Approval_Log">
<ExportLocation>/home/usr/admin/centrasite/log/backups/approval
</ExportLocation>
</LogPurgeSetting>
<LogPurgeSetting log="Runtime_Event_Log">
<OlderThan>-P5D</OlderThan>
</LogPurgeSetting>
<LogPurgeSetting log="Runtime_Performance_Log">
<Until>2002-05-30</Until>
<CommitThreshold>1000</CommitThreshold>
</LogPurgeSetting>
</LogPurgeSettings>
Note:  
Make sure you copy this file somewhere within the file system of the machine where CentraSite is installed.
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback