Skip to content
Snippets Groups Projects
Commit eed64299 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: use new separate file to store journald config for new log retention policy

parent 51f57f99
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,16 @@
mode: "0644"
create: "true"
state: present
block: |
loop:
- path: "log_retention.conf"
block: |
# According to SLUB policy beginning in July 2023, there are new retention periods for log entries governed by the law (SächsISichG §13). From now on, logs in journald are stored for 90 days, as reflected by this configuration.
# Find details on this configuration item at https://www.freedesktop.org/software/systemd/man/journald.conf.html#MaxFileSec=
MaxFileSec=1day
# Find details on this configuration item at https://www.freedesktop.org/software/systemd/man/journald.conf.html#MaxRetentionSec=
MaxRetentionSec=90day
- path: "persistence.conf"
block: |
# If "persistent", data will be stored preferably on disk, i.e. below the /var/log/journal hierarchy (which is created if needed), with a fallback to /run/log/journal (which is created if needed), during early boot and if the disk is not writable.
Storage=persistent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment