[base:journal] delete logs after 1 month

master
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
1 changed files with 16 additions and 0 deletions

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