<< Back to previous view

[QB-3300] QuickBuild Maintenance does not purge old audit log entries
Created: 28/Nov/18  Updated: 01/Dec/18

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 8.0.25
Fix Version/s: 8.0.27

Type: Bug Priority: Major
Reporter: Phong Trinh Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Linux Centos 7

File Attachments: PNG File Audit Entries.PNG     PNG File Server Log - 1.PNG     PNG File Server Log - 1.PNG     PNG File Server Log - 2.PNG     Zip Archive Server Log.zip     PNG File System Setting.PNG    

 Description   
We set 'Audit Entry Preserve Days' of our QuickBuild server to 30 days, but the maintenance doesn't purge the log entries which older than these days. I queried the audit log, it still had log entries since May of 2017. This causes disk spaces issue, lengthy upgrade, system performance, ... Please looks into it as your earliest chance.

 Thank you in advance,
ptrinh

 Comments   
Comment by Phong Trinh [ 28/Nov/18 01:57 PM ]
Please let me know if you have any additional information.
Comment by Robin Shen [ 28/Nov/18 11:18 PM ]
The audit log purge will happen at system maintenance schedule, which can be defined at "administration/system setting" page, and it is by default set to 1:00AM every night.
Comment by Phong Trinh [ 29/Nov/18 03:53 AM ]
In "administration/system setting" page, I set 'Audit Entry Preserve Days' is 30 days. The audit entries which are older than 30 days should be deleted by the maintenance schedule, but they are not deleted.
Comment by Phong Trinh [ 29/Nov/18 04:04 AM ]
Audit Entry Preserve Days is 30 days, but I queried the log entries which were older than 1 year old, but they are still existing in the system.
Comment by Robin Shen [ 30/Nov/18 12:08 AM ]
Please check QB server log around 1:00AM to see if it contains below message:
Removing obsolete audit entries

And if yes, are there errors printed after that?
Comment by Phong Trinh [ 30/Nov/18 01:52 AM ]
 Thank you for promptly responses, Robin.
 I looked into the server logs, and looks like the maintenance occurred, but it didn't delete the old audit logs. I attached the screenshots of the logs for your references. I will attach the log file as soon as I am in the office tomorrow..
Comment by Phong Trinh [ 30/Nov/18 02:14 AM ]
I saw several messages: "Removing obsolete audit entries", but didn't any error after those.
Comment by Robin Shen [ 01/Dec/18 11:50 AM ]
Turns out to be a bug. Fixed now in QB 8.0.27:
https://build.pmease.com/build/4652
Generated at Tue Apr 23 20:19:27 UTC 2024 using JIRA 189.