mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-10-30 01:12:07 -04:00
23 lines
No EOL
532 B
Markdown
23 lines
No EOL
532 B
Markdown
---
|
|
date: 2021-02-21 21:08:51
|
|
draft: false
|
|
medium_enabled: true
|
|
medium_post_id: acf4ee0e7f0c
|
|
tags:
|
|
- Linux
|
|
title: Clearing Systemd Logs
|
|
---
|
|
|
|
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:
|
|
|
|
```bash
|
|
journalctl --vacuum-time=15d
|
|
```
|
|
|
|
An example to clear it by total disk usage, let's say 10Gb:
|
|
|
|
```bash
|
|
journalctl --vacuum-size=10G
|
|
``` |