how to clear journal logs (/var/log/journal)

0
(0)

/var/log/journal is the directory with the package’s systemd logs the /var/log/journal directory has become too busy and needs to be cleaned up:

943M    /var/log/journal

Before clean:

# journalctl --disk-usage
Archived and active journals take up 943.4M on disk.

Doing the cleaning:

# journalctl --vacuum-size=100M
# journalctl --verify

After cleaning, we get the result:

# journalctl --disk-usage
Archived and active journals take up 102.0M on disk.

Edit config (/etc/systemd/journald.conf)

SystemMaxUse=100M
SystemMaxFileSize=12M

and restart journald

# systemctl restart systemd-journald

Similar Posts:

673

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top