mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-09 10:40:34 -05:00
New Post
This commit is contained in:
parent
bd8f81e08b
commit
a55824da41
1 changed files with 21 additions and 0 deletions
21
content/blog/clearingsystemdlogs.md
Normal file
21
content/blog/clearingsystemdlogs.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: "Clearing Systemd Logs"
|
||||
date: 2021-02-21T16:08:51-05:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
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
|
||||
```
|
||||
|
Loading…
Reference in a new issue