-
Notifications
You must be signed in to change notification settings - Fork 99
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
[BUG] Logs not rotating #535
Comments
Containers don’t have a cron job, but we can do something about log rotation by configuring mailman-web/mailman-core or something. |
Below is a script I placed in /etc/logrotate.d/mailman to address this issue. I believe this will rotate the logs every week, by default. You would need to confirm where your logs are stored, as that may be dependent on how you have configured your containers. #rotate logs for Mailman (Docker) "/opt/mailman/core/var/logs/*.log" { "/opt/mailman/web/logs/*.log" { |
Are there any news on this? |
I'm not familiar with the current Docker setup, so it's possible rotation is not configured. Even once it's configured, most likely |
Tag/version of Container Images
0.3.*, 0.4.*
Logs are never rotated, we had mailman/wsgi logs that exceeded 100GB in total.
This should be fairly trivial to fix, just adding policies to /etc/logrotate.d and running logrotate in a cron job.
The text was updated successfully, but these errors were encountered: