Outils pour utilisateurs

Outils du site


tech:systemd_journalctl_journal_logs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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.1tech:systemd_journalctl_journal_logs [2025/11/13 19:57] (Version actuelle) Jean-Baptiste
Ligne 4: Ligne 4:
  
 Voir https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs Voir https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
 +
  
 == 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 /etc/systemd/journald.conf>+ 
 +''/etc/systemd/journald.conf'' 
 +<code ini>
 [Journal] [Journal]
 #Storage=auto #Storage=auto
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         | The name of the container image.                                             | |IMAGE_NAME         | The name of the container image.                                             |
 +
  
 === 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
 </code> </code>
 +
  
 ==== Journalctl container et Python ==== Journalctl container et Python
Ligne 162: Ligne 167:
 === Autres === Autres
  
-<code ini /etc/systemd/journald.conf>+''/etc/systemd/journald.conf'' 
 +<code ini>
 [Journal] [Journal]
 RateLimitInterval=10s RateLimitInterval=10s
 RateLimitBurst=6000 RateLimitBurst=6000
 </code> </code>
 +
  
 == Pb == Pb
tech/systemd_journalctl_journal_logs.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki