1

All environment info on my os.

debian8@debian:~$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
debian8@debian:~$ systemd --version
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR

My journald.conf configuration.

sudo cat /etc/systemd/journald.conf | grep -v "#"

[Journal]
Storage=persistent
Compress=yes
Seal=yes
SyncIntervalSec=5m
SystemMaxUse=100M
SystemMaxFileSize=100M

How many journals info on my pc.

sudo journalctl --disk-usage
Journals take up 8.0M on disk.

Now to retain only 4M with such command as below.

sudo journalctl --vacuum-size=1M
journalctl: unrecognized option '--vacuum-size=1M'
  • 3
    --vacuum-size= and --vacuum-time= were added in systemd v. 218 – don_crissti May 4 '17 at 10:09
  • That's good to know, @don_crissti, but how do you clean up the journal in earlier versions? – David Oct 11 '17 at 20:51
  • @David - see How to clear journalctl ;) – don_crissti Oct 11 '17 at 21:01
  • Been there, done that. Except the find thing. Is it really save to delete the .journal files manually? – David Oct 11 '17 at 22:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.