Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 5
    safe, fast, smooth and clean, thanks! also, as mentioned in unix.stackexchange.com/a/130802/142247 there is a permanent solution for this in /etc/systemd/journald.conf -> SystemMaxUse=500M Commented Apr 5, 2020 at 10:48
  • 14
    Make it permanent with: echo SystemMaxUse=500M | sudo tee -a /etc/systemd/journald.conf Commented Jul 16, 2020 at 13:58
  • 4
    I had to use sudo otherwise it clears 0 bytes sudo journalctl --vacuum-size=500M Commented Oct 20, 2020 at 4:36
  • 4
    What is the use of keeping it so large by default? Do we lose anything by trimming to 500MB? Will we lose the ability to recover data in the event of crash if we keep it low? Commented Mar 16, 2021 at 7:18
  • @Jus12 it depends on workload on machine. If you have a lot of software and a lot of logs - you will definitely loose some logs for the past periods. Maybe the next answer (--vacuum-time) can help to explain what I mean. Commented May 21, 2024 at 12:13