From 881f6ae9dfc8996f2e3018bb8c8629f15a5b6a02 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 1 Nov 2026 22:44:38 +0100 Subject: [PATCH] Limit the size of logs more severly The goal is to: * limit the amount of (potentially) PII data by limiting retention time * make sure the disk doesn't fill up with log data * make it easier to look at logs on the system without having to wade through many old entries --- .../chaosknoten/matrix-sync/docker_compose/compose.yaml.j2 | 5 ----- roles/deploy_systemd_journal_config/files/10-ccchh.conf | 7 +++++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/chaosknoten/matrix-sync/docker_compose/compose.yaml.j2 b/resources/chaosknoten/matrix-sync/docker_compose/compose.yaml.j2 index 9871eec2..82186925 100644 --- a/resources/chaosknoten/matrix-sync/docker_compose/compose.yaml.j2 +++ b/resources/chaosknoten/matrix-sync/docker_compose/compose.yaml.j2 @@ -18,8 +18,3 @@ services: restart: unless-stopped volumes: - ./configs:/configs - logging: - driver: "json-file" - options: - max-size: "50m" - max-file: "3" diff --git a/roles/deploy_systemd_journal_config/files/10-ccchh.conf b/roles/deploy_systemd_journal_config/files/10-ccchh.conf index eea3754d..8153f35a 100644 --- a/roles/deploy_systemd_journal_config/files/10-ccchh.conf +++ b/roles/deploy_systemd_journal_config/files/10-ccchh.conf @@ -1,5 +1,8 @@ [Journal] -MaxFileSec=2day -MaxRetentionSec=2week +SystemMaxUse=1G +SystemMaxFileSize=10M +RuntimeMaxFileSize=10M +MaxFileSec=4h +MaxRetentionSec=8day ForwardToSyslog=no -- 2.54.0