[base:journal] delete logs after 1 month
This commit is contained in:
parent
9081ff0dcb
commit
52bf73b850
|
@ -6,3 +6,19 @@
|
||||||
option: Storage
|
option: Storage
|
||||||
value: persistent
|
value: persistent
|
||||||
notify: restart-journald
|
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
|
||||||
|
|
Reference in a new issue