To ensure that audit database does not grow too large for its allotted disk space, audit records should be archived and removed regularly.
Before you enable Automatic Archiving, you must ensure that Cron job or Task Scheduler is installed and running.
When you are deciding whether or not to automatically archive and remove audit records (or how often to archive and remove them), please note that some reports use the audit log and can only show events if they are still contained in the audit log.
As part of the daily cron job (scheduled task), you can configure FileCloud to export records to a .csv file and delete those records from the audit database.
This is configured in the Settings screen on the Admin tab.
To auto archive audit log entries:
-
In the FileCloud admin portal's left navigation bar, scroll down and click Settings. Then, on the Settings navigation page, click Admin
.
The Admin settings page opens.
-
Scroll down and locate the audit settings.
-
Fill in the audit settings as indicated in the following table:
|
Setting
|
Description
|
|
Audit log level
|
To create an audit log, set to Request or Full.
|
|
Auto archive audit database
|
Enable this setting. Note: Cron Job must be set up and running.
|
|
Auto archive audit records frequency (in days)
|
Number of days to store the audit records in the database. After the number of days specified, audit records are exported to csv and deleted from the audit database.
|
|
Storage path for archived audit records
|
Path of folder that stores the exported audit records in CSV format. For example, C:\archives
|
If you want to automatically remove records but not archive them, you can configure FileCloud to remove audit records but not export them to a csv file.
To auto remove records without exporting them:
-
Open cloudconfig.php:
Windows Location: XAMPP DIRECTORY/htdocs/config/cloudconfig.php
Linux Location: /var/www/config/cloudconfig.php
-
Add the following :
Define("TONIDOCLOUD_AUDIT_AUTO_ARCHIVE_OMIT_BACKUP", true);