Configuring automated Audit Log cleanup
To prevent uncontrolled growing of MVMA Audit Log kept in MongoDB as of MVMA 9.1.00.B can be configured to retain audit records only for a configurable amount of time and to delete any older entries automatically.
To configure audit log maintenance:
- backup the configuration file com.bmc.mmadmin.service.audit.cfg located in the sub-directory configuration/services of the MVMA installation directory.
- edit the configuration file com.bmc.mmadmin.service.audit.cfg.
- enable and select the following properties as needed:
- enable the property auditRecordDaysRetention and set it to the number of days you want the audit records to be kept within MVMA.
The older audit records will then be deleted automatically depending on when cleanup should be run. - enable the property auditCleanupStart and set it to either onstartup so that the audit log is cleaned up whenever (re-)starting MVMA (this is the default,)
or set it to an hour of the day (0-23) to specify a daily cleanup at the selected hour.
- enable the property auditRecordDaysRetention and set it to the number of days you want the audit records to be kept within MVMA.
- save the changes made to the configuration file.
re-start MVMA for the changes to take effect.
Example:
To keep the audit records for 30 days after creation, and to remove any older records every day at midnight, set:auditRecordDaysRetention=30
auditCleanupStart=0
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*