[base:journal] delete logs after 1 month

This commit is contained in:
Simon Bruder 2019-06-09 11:25:29 +00:00
parent 9081ff0dcb
commit 52bf73b850
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -6,3 +6,19 @@
option: Storage
value: persistent
notify: restart-journald
- name: set max data retention for journal
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: MaxRetentionSec
value: 1month
notify: restart-journald
- name: do not forward journal entries to syslog
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: ForwardToSyslog
value: no
notify: restart-journald