Clearing old Journald Logs

Journald logs can be cleared by timescale or size as follows.

Keep only 5 days worth of logs

journalctl –vacuum-time=5d

Retain only the past 500 MB:

journalctl –vacuum-size=500M

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>