log_rotate_max_files
is only checked on exceeding log_rotate_duration
or log_rotate_bytes
#10912
Labels
log_rotate_max_files
is only checked on exceeding log_rotate_duration
or log_rotate_bytes
#10912
Nomad version
Nomad v1.1.2 (60638a086ef9630e2a9ba1e237e8426192a44244)
Operating system and Environment details
Tested on macOS Big Sur 11.1 (20C69), but it should apply to all operating systems/environments.
Issue
log_rotate_max_files is only applied if:
Reproduction steps
Given a
client.hcl
with contents of:When
is ran then
ls /tmp/log|wc -l
should return
Expected Result
8
(log_rotate_max_files
specifies the maximum number of older log file archives to keep, not including the log file currently being written)Actual Result
20
The text was updated successfully, but these errors were encountered: