use percent of free space
This commit is contained in:
39
Readme.md
39
Readme.md
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user