Summary
Problem
When using hourly log rotation, the system would count each date separately. For example:
databend-query-default.2025-03-18-10.log
databend-query-default.2025-03-18-11.log
databend-query-default.2025-03-19-09.log
databend-query-default.2025-03-19-10.log
These were treated as different groups, allowing up to 48 files for EACH date. This caused excessive accumulation - in one case, we found 458 log files when the limit was supposed to be 48.