From eed642992f50d91fbbc1992fdc523662b97a1f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de> Date: Fri, 28 Jul 2023 13:37:03 +0200 Subject: [PATCH] feat: use new separate file to store journald config for new log retention policy --- tasks/configure_persistent_journald_logging.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tasks/configure_persistent_journald_logging.yml b/tasks/configure_persistent_journald_logging.yml index 31bf701..925444b 100644 --- a/tasks/configure_persistent_journald_logging.yml +++ b/tasks/configure_persistent_journald_logging.yml @@ -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 -- GitLab