« Journalctl » : différence entre les versions

Ligne 42 : Ligne 42 :
</syntaxhighlight>
</syntaxhighlight>


En temps réel :  
=== En temps réel : ===
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>
sudo journalctl -f | grep "\[UFW BLOCK\]"
sudo journalctl -f | grep "\[UFW BLOCK\]"
sudo journalctl -k -f | grep "\[UFW BLOCK\]" | grep 'DPT=80'
sudo journalctl -k -f | grep "\[UFW BLOCK\]" | grep 'DPT=80'
</syntaxhighlight>
<syntaxhighlight lang="bash" line>
# [-S DATE] : show logs Since DATE
# [-U DATE] : show logs Until DATE
journalctl -S "2024-08-07 19:00:00" -U "2024-08-07 20:00:00"
</syntaxhighlight>
</syntaxhighlight>


[[Catégorie:Linux]] [[Catégorie:Debian]]
[[Catégorie:Linux]] [[Catégorie:Debian]]