Skip to content
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

Open
zeus86 opened this issue Feb 17, 2021 · 0 comments
Open

add logrotation option #111

zeus86 opened this issue Feb 17, 2021 · 0 comments

Comments

@zeus86
Copy link

zeus86 commented Feb 17, 2021

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant