use percent of free space

This commit is contained in:
2025-10-16 14:19:43 +02:00
parent cdb8c80c4d
commit 5ac01e56be

View File

@@ -1,24 +1,5 @@
# Logs avec journald
## Configuration
mkdir /etc/systemd/journald.conf.d
vim /etc/systemd/journald.conf.d/my.conf
```ini
[Journal]
Storage=persistent
SystemMaxUse=512G
```
```bash
systemctl restart systemd-journald
journalctl --flush
ls -l /var/log/journald
```
## Interrogation
À l'aide de la commande _journalctl_:
@@ -34,4 +15,22 @@ journactl --unit sshd
journalctl --since -30m
# Afficher en continu le journal et en parallèle, relancer un service.
journalctl -ef
journalctl -ef
## Configuration
mkdir /etc/systemd/journald.conf.d
vim /etc/systemd/journald.conf.d/my.conf
```ini
[Journal]
Storage=persistent
SystemMaxUse=5%
```
```bash
systemctl restart systemd-journald
journalctl --flush
ls -l /var/log/journald
```