cheat sheet journalctl
| 効果 | コマンド |
|---|---|
| 逆順表示 | journalctl -r |
| 特定ユニット | journalctl -u rsyslog.service |
| 時間指定 | journalctl –since today |
| 現在のブートセッションのみ | journalctl -b |
| tail -f のようにフォロー | journalctl -f |
| ページ(errとかinfoとか)ごと | journalctl -p err |
デーモンのリストを出し検索
systemctl list-units --type=service
例
rootless containerd のログを置い続ける
journalctl -f --user-unit containerd.service -p warning