You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

This class contains methods for managing log archives.

removeUnpacked(sysLogArchiveId)


Use this method to remove unpacked outdated logs. By default, the logs older than one month are considered outdated. You can edit the archiving period with the simple.logs.rotate_period_in_days system property.

Note that this method does not delete the log archive. It deletes only the temporary tables containing the logs that were created within the previous unpacking.

Parameter(s):

NameTypeMandatoryDefault value
sysLogArchiveIdStringYN

Return:

TypeDescription
VoidThis method does not return a value.

Example:

removeUnpacked()
const logArchive = new SimpleLogArchive();
logArchive.removeUnpacked('161478566913431857');

runPacking()


Use this method to pack outdated logs into an archive. By default, the logs older than one month are considered outdated. You can edit the archiving period with the simple.logs.rotate_period_in_days system property.

Return:

TypeDescription
VoidThis method does not return a value.

Example:

runPacking()
const logArchive = new SimpleLogArchive();
logArchive.runPacking();

runUnpacking(sysLogArchiveId)


Use this method tounpack a log archive. When the unpacking is finished, the logs are placed in the related log tables. See the System Audit articles to learn more.

Parameter(s):

NameTypeMandatoryDefault value
sysLogArchiveIdStringYN

Return:

TypeDescription
VoidThis method does not return a value.

Example:

runUnpacking()
const logArchive = new SimpleLogArchive();
logArchive.runUnpacking('161478566913431857');

  • No labels