-
Notifications
You must be signed in to change notification settings - Fork 77
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
add logrotation option #111
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
awesome playbook, but i'd like to see a configurable option to add nextclouds internal logrotation. since nc14 or so it is enabled by default even if not listed in the config.php, but is set to 100MB as rotation breakpoint.
nextcloud-logs (the json log at data/nextcloud.log) is quite unreadable anyways, but if you'd like to have smaller logs (or if they remove that default somewhen) you'd want to have this configurable. the occ-command for this is as follows:
sudo -u www-data php /var/www/nextcloud/occ log:file --rotate-size 10MB
you can use human-readable sizes here, however, it goes as bytes to the config.php :
'log_rotate_size' => 10485760,
i'd try to add this by my self, but i'm still learning how to be good at especially idempotency :-)
The text was updated successfully, but these errors were encountered: