tech:systemd_journalctl_journal_logs
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:systemd_journalctl_journal_logs [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:systemd_journalctl_journal_logs [2025/11/13 19:57] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| Voir https:// | Voir https:// | ||
| + | |||
| == Requête sur les logs, chercher et trouver | == Requête sur les logs, chercher et trouver | ||
| Ligne 78: | Ligne 79: | ||
| Par défaut journalctl affiche uniquement les logs du dernier boot | Par défaut journalctl affiche uniquement les logs du dernier boot | ||
| - | <code - > | + | <code -> |
| # journalctl --boot=-1 | # journalctl --boot=-1 | ||
| Failed to look up boot -1: Cannot assign requested address | Failed to look up boot -1: Cannot assign requested address | ||
| Ligne 85: | Ligne 86: | ||
| Pour avoir les logs persistant : | Pour avoir les logs persistant : | ||
| - | <code ini / | + | |
| + | '' | ||
| + | <code ini> | ||
| [Journal] | [Journal] | ||
| # | # | ||
| Ligne 114: | Ligne 117: | ||
| |CONTAINER_PARTIAL_MESSAGE | A field that flags log integrity. Improve logging of long log lines. | | |CONTAINER_PARTIAL_MESSAGE | A field that flags log integrity. Improve logging of long log lines. | | ||
| |IMAGE_NAME | |IMAGE_NAME | ||
| + | |||
| === Retrieve log messages with journalctl | === Retrieve log messages with journalctl | ||
| Ligne 143: | Ligne 147: | ||
| sudo journalctl -b CONTAINER_NAME=webserver --all | sudo journalctl -b CONTAINER_NAME=webserver --all | ||
| </ | </ | ||
| + | |||
| ==== Journalctl container et Python | ==== Journalctl container et Python | ||
| Ligne 162: | Ligne 167: | ||
| === Autres | === Autres | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| [Journal] | [Journal] | ||
| RateLimitInterval=10s | RateLimitInterval=10s | ||
| RateLimitBurst=6000 | RateLimitBurst=6000 | ||
| </ | </ | ||
| + | |||
| == Pb | == Pb | ||
tech/systemd_journalctl_journal_logs.1742825205.txt.gz · Dernière modification : de 127.0.0.1
