CentraSite Documentation : CentraSite Administrator’s Guide : Logging : Purging Logs : Purging Log Records Using the Command Line Tool : Creating a Log Purging Configuration File : Define a Log Purge Type
Define a 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 that are older than the specified date/time, and then exports the records as an archive to the directory specified on the ExportLocation attribute. If there is no ExportLocation attribute specified for the log unit, CentraSite deletes the records without exporting them.
Use xs:dateTime values to indicate the date and time. The default time zone is UTC/GMT.
OlderThan
Deletes log records that are older than the specified time interval, and then exports the records as an archive to the directory specified on the ExportLocation attribute. If there is no ExportLocation attribute specified for the log unit, CentraSite deletes the records without exporting them.
Use xs:duration values to indicate the time interval.
For example, to purge all log entries older than 1 month, 10 days, specify:
<OlderThan>P1M10D</OlderThan>
To purge all log entries, specify:
<OlderThan>P0D</OlderThan>
Note:  
Specify only positive durations or 0. Negative durations will delete all log entries.
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>2014-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>2014-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 © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback