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

Limit systemd journal sizes #1

Open
grosscol opened this issue Nov 7, 2024 · 0 comments
Open

Limit systemd journal sizes #1

grosscol opened this issue Nov 7, 2024 · 0 comments

Comments

@grosscol
Copy link
Collaborator

grosscol commented Nov 7, 2024

journald will happily fill up /var/log with the default settings.
Alter the SystemMaxUse key in /etc/systemd/journald.conf to limit the disk usage of the system journal. E.g.

[Journal]
SystemMaxUse=200M

Recommend using the community ini_file module: https://docs.ansible.com/ansible/latest/collections/community/general/ini_file_module.html

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