You have been subscribed to a public bug:

Request:

Similar to documented [1] snap set commands, could there be a
configuration parameter available to limit log storage to 512MB?

[1] - https://snapcraft.io/docs/system-options#heading--journal-
persistent

Workaround used (but would prefer a snap set command for this
functionality):

Clean the logs to the requested size utilizing the journalctl vacuum 
capabilities, for example:
journalctl --vacuum-size=512M

If you have access to edit /etc/systemd/journald.conf file you could set
the parameter SystemMaxUse= to 512M, however in Ubuntu Core this may be
read-only and unalterable. If that is the case use a systemd timer or
cron job to manage the file size with the journalctl command provided
above.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
Feature Request: UbuntuCore20 - snap set command to configure journald
https://bugs.launchpad.net/bugs/1922277
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to