diff --git a/Readme.md b/Readme.md index b721407..245d43a 100644 --- a/Readme.md +++ b/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 \ No newline at end of file +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 +``` +