Skip to content

Change max log size for journalctl not straightforward #522

@jeaninevbrr

Description

@jeaninevbrr

For our application we need more logs then the 32M that is set with the balena OS.

I obviously first changed SystemMaxUse= in /etc/systemd/journald.conf.d/journald-balena-os.conf, but my logs kept being vacuumed to 32M. I spend quite some digging in the reasons why.
Only after editing also /lib/systemd/system/periodic-vacuum-logs.service and /etc/systemd/system/systemd-journald.service.d/vacuum.conf I get the intended result.

Why the extra daily timer and the extra drop-in? Can this be more straightforward?

version used: v6.0.16

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