-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
make logrotation active by default #5165
Comments
I would find this change useful as well. To see current logging settings in NC12:
To enable logrotation at 50 MB on NC12:
For advanced handling of Nextcloud logfiles the logrotate-daemon may be used, this is mostly pre-installed on many Linux distributions anyway. |
yeah, thats true, but it has to be configured manually anyways, because it is inside the webroot folder and not within /var/log or something like that. I agree, that old-fashioned logrotate would be the better choice in general, but if NC has its own routines for that, why not use them? but at least it should be enabled by default |
Usually logrotate does have an own configuration folder Anyway, yes, in my opinion there should be any default value aswell to prevent any massive increase in space consumption when high logging activity on bigger setups occurs. |
yes, i know of course, but that is not the point i'm trying to make. As you also noted there should be an active logrotation by default, because |
done in #9137 |
@rullzer cool, thank you. say, will this change lead to the activation of logrotate on installations in default-state when updating? or do old installations require manual intervention to make the rotation active? |
This may sound like a low hanging fruit, but can be a hassle when forgotten.
the NC-internal Logrotation shall be enabled by default.
You can easily check this for your instance with
/var/www/nc# sudo -u www-data php occ log:owncloud
while in your installation folder. The ourput is then something like
...or - most likely when not changed - the rotation is disabled. You can e.g. enable this feature with
/var/www/nc# sudo -u www-data php occ log:file --rotate-size 10MB
in your instance root folder.
This is an often missed point during the setup on an installation, and you really want to have senseful defaults. Leaving the Logrotation disabled will cause problems most like after a few month. Enabling this by default should be not a problem at all. In addition to this you might want to have a more precise control that you might want to keep more than one rotated logfile if enabled.
The text was updated successfully, but these errors were encountered: