Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay DXP - Audit: Limit or clean audit table?
Hi everybody,
we are running Liferay DXP 7.1.10 GA1 (dxp-18-7110).
While reviewing our backups, I noticed that the Liferay database has grown tremendously since the last update two years ago (6.2 to 7.1). A quick look at the tables then also showed that the Audit_AuditEvent table contains around 2 gigabytes of data (over 1.8 million entries, first one from the update day).
Is there a mechanism to limit the number of entries (e.g. "last 14 days" or "max. 2000 entries")? In the configuration the "Audit Message Maximum Queue Size" is set to the default value of 200, but that seems to have no effect or is meant for something else...
Otherwise, can we safely clean this table periodically via script? Or are there any dependencies here?
Thanks in advance!
André
Powered by Liferay™