Stellen Sie journalctl so ein, dass alle Protokolle für immer gespeichert werden (SystemMaxUse = unbegrenzt)

Stellen Sie journalctl so ein, dass alle Protokolle für immer gespeichert werden (SystemMaxUse = unbegrenzt)

Wie konfiguriere ich journald, sodass es meine Protokolle niemals, niemals, niemals löscht?

Ja, ich möchte journald anweisen, weiter zu schreiben, bis die Festplatte (sprich: das /varDateisystem der Partition) voll ist.

Nein, ich möchte nicht, dass weiter im Speicher gespeichert wird, bis der RAM voll ist.

Entsprechend man 5 journald.conf,

SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=,
RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=
    Enforce size limits on the journal files stored. The options
    prefixed with "System" apply to the journal files when stored on a
    persistent file system
...
    The first pair defaults to 10% and the second to 15% of the size of
    the respective file system, but each value is capped to 4G.

Der Standardwert ist also ein bestimmter Prozentsatz des Dateisystems mit einer Obergrenze von 4 GB. Leider sehe ich in der obigen Manpage keinen Hinweis darauf, wie man es auf unbegrenzt setzt.

Wie erreiche ich, dass journaldmeine Protokolle nie gelöscht werden? Bonuspunkte gibt es für zusätzliche Optionen, die Rotation, Komprimierung usw. verbessern.

verwandte Informationen