1
0
Fork 0
mirror of https://github.com/Brandon-Rozek/website.git synced 2025-03-12 03:42:23 +00:00
website/content/blog/clearingsystemdlogs.md

494 B

title date draft tags
Clearing Systemd Logs 2021-02-21T16:08:51-05:00 false
Linux

Short post today. I wanted to clear out some disk space usage on one of my servers and noticed that the systemd logs were taking up a decent bit. Here are two options to clear out old logs.

Here is an example to do it by time, let's say 15 days:

journalctl --vacuum-time=15d

An example to clear it by total disk usage, let's say 10Gb:

journalctl --vacuum-size=10G