<< Back to previous view |
![]() |
[QB-4176] Log cleanup strategy
|
|
Status: | Open |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 15.0.8 |
Fix Version/s: | None |
Type: | Improvement | Priority: | Major |
Reporter: | Robin Shen | Assigned To: | Robin Shen |
Resolution: | Unresolved | Votes: | 1 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
File Attachments: |
![]() |
Description |
We would like to have history of all builds. The problem is that when we enable it, logs from these builds almost immediately fill out our storage (up to 400 GB of logs per day).
The question is: is it possible to have history of builds enabled for a longest possible period. And on the other hand have logs on the TRACE level only for the latest 10 or so builds. We just need very detailed logs for the recent builds and we don't need them for old. But we need history of (almost) all builds. |
Comments |
Comment by Robin Shen [ 02/May/25 06:49 AM ] |
Removing log entries of TRACE level while preserving other entries only requires to parse and modify the log which can be very slow if log is huge and there are many builds. We plan to delete logs completely for builds older than a specific time, is this acceptable? |
Comment by Alexander Ananyev [ 02/May/25 09:28 AM ] |
Yes, totally acceptable.
Thanks |
Comment by Robin Shen [ 04/May/25 09:50 AM ] |
Turns out that this is already possible with the artifact clean up setting in advanced setting of the configuration. Please tick clean up build log option as shown in the attached screenshot. By default it also cleans up published artifacts, you may specify an non-existant pattern if you do not want to delete any artifacts. |