Project

General

Profile

Demande #5940

Gestion de l'espace disque des logs systemd

Added by François Poulain about 1 year ago. Updated 6 days ago.

Status:
En cours de traitement
Priority:
Normale
Category:
-
Target version:
Start date:
07/24/2022
Due date:
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

A l'occasion d'un reboot, vu sur mail :

░░ Subject: Espace disque utilisé par le journal
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ Documentation: man:journald.conf(5)
░░ 
░░ System Journal (/var/log/journal/3e08aff87de2df4b85ab7dff31b48af5) utilise actuellement 912.0M.
░░ Le maximum autorisé est défini à 871.9M.
░░ Au moins 435.9M doivent être laissés libres
░░ (sur 3.8G d'espace disque actuellement libre).
░░ La limite appliquée est donc 871.9M, dont 0B
░░ sont toujours disponibles.
░░ 
░░ Les limites définissant la quantité d'espace disque que peut utiliser le
░░ journal peuvent être configurées avec les paramètres SystemMaxUse=,
░░ SystemKeepFree=, SystemMaxFileSize=, RuntimeMaxUse=, RuntimeKeepFree=,
░░ RuntimeMaxFileSize= dans le fichier /etc/systemd/journald.conf.
░░ Voir journald.conf(5) pour plus de détails.

History

#1

Updated by François Poulain about 1 year ago

Je cherche donc qui crache du log. Je trouve un dovecot en mode debug.

#2

Updated by François Poulain about 1 year ago

On voit aussi beaucoup de connexion failed après auth dans les logs postfix. Un fail2ban (ou un réglage de fail2ban) serait utile.

#3

Updated by François Poulain about 1 year ago

  • Status changed from Nouveau to En cours de traitement
  • Assignee set to François Poulain
  • Target version changed from Backlog to Été 2022
#4

Updated by François Poulain about 1 year ago

Pour le soucis initial, j'ai demandé à journalctl de réduire la voilure :

(April) root@mail:/var/log# journalctl --disk-usage
Archived and active journals take up 912.0M in the file system.

(April) root@mail:/var/log# journalctl --vacuum-size=500M
Vacuuming done, freed 0B of archived journals from /run/log/journal.
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (96.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (96.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (8.0M).
Deleted archived journal (104.0M).
Vacuuming done, freed 432.0M of archived journals from /var/log/journal/3e08aff87de2df4b85ab7dff31b48af5.
Vacuuming done, freed 0B of archived journals from /var/log/journal.

(April) root@mail:/var/log# systemctl start systemd-journal-flush.service

-> Ok.

#5

Updated by Quentin Gibeaux about 1 year ago

  • Target version changed from Été 2022 to Septembre 2022
#6

Updated by Quentin Gibeaux about 1 year ago

  • Target version changed from Septembre 2022 to Octobre 2022
#7

Updated by Quentin Gibeaux 11 months ago

  • Target version changed from Octobre 2022 to Novembre 2022
#8

Updated by Quentin Gibeaux 10 months ago

  • Target version changed from Novembre 2022 to Décembre 2022
#9

Updated by Quentin Gibeaux 9 months ago

  • Target version changed from Décembre 2022 to Janvier 2023
#10

Updated by Quentin Gibeaux 8 months ago

  • Target version changed from Janvier 2023 to Février 2023
#11

Updated by Frédéric Couchet 7 months ago

  • Target version changed from Février 2023 to Mars 2023
#12

Updated by Quentin Gibeaux 6 months ago

  • Target version changed from Mars 2023 to Avril 2023
#13

Updated by Quentin Gibeaux 5 months ago

  • Target version changed from Avril 2023 to Mai 2023
#14

Updated by Quentin Gibeaux 4 months ago

  • Target version changed from Mai 2023 to Juin 2023
#15

Updated by Quentin Gibeaux 3 months ago

  • Target version changed from Juin 2023 to Été 2023
#16

Updated by Quentin Gibeaux about 1 month ago

  • Target version changed from Été 2023 to Septembre 2023
#17

Updated by Quentin Gibeaux 6 days ago

  • Target version changed from Septembre 2023 to Octobre 2023

Also available in: Atom PDF