New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logfiles like consul-1685110072803312715.log-20230525 not compressed/deleted #519
Comments
No, there is currently no solution within logrotate for this. |
@cgzones Is there any update on this? If not is there a workaround to rotate these logfiles? |
My workaround is a custom shell script to rotate these logs ... |
We use hashicorp consul that creates logfiles like
consul-1685111153157372329.log
.logrotate rotates the logfile, but did not compress or delete older logfiles, resulting in files like this:
When doing a forced logrotate I saw there seems to be a problem with the glob pattern:
I think the problem is the glob pattern, looking for -YYYYMMDD, that cannot be found on the first place, because there is something like -nnnnnnnn.
My config is the following:
Is there a solution to fix this problem?
Thanks in advance.
The text was updated successfully, but these errors were encountered: