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
RE: How to delete Liferay Audits?
We've over 60 million audit logs in the database and we're not using it at all. It's causing problems during DB migrations and all. How to delete these massive logs from DB in an efficieint manner. My questions are:
- Is there any bulk delete API for these Audit logs?
- Are there any consequences to deleting these logs directly from the DB?
Hi Vishnu,
There are deleteAuditEvent methods in the AuditEventLocalServiceUtil class that you can use from some script. I think, you can remove old entries periodically, mainly if you don't use them at all.
Zsigmond
Hi ! I see in my portal database the table PORTALAUDIT_Audit
with o lot of records.
The most part of them are TRACK records and I am not interesed
about this, so, I should like to diseable TRACKING Audit. I need to
keep other kind of Audit records.
Please advise me how to configure Audit so that do not generate audit record for TRACKING..
Many thanks !
Friendly, Alex
Powered by Liferay™