Skip to content

add logrotation option #111

Open
Open
@zeus86

Description

@zeus86

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions