Reference
crab logs
View and manage diagnostic logs.
Synopsis
crab logs <COMMAND>Description
crab logs manages diagnostic log files. Use last or show to read a log,
list to discover names, and clear to delete all log files.
The default log level is error. Set CRAB_LOG=debug or pass
--log-level debug for a single troubleshooting run.
For conceptual background, see Log Management.
Commands
| Command | Purpose |
|---|---|
list | List all log files |
last | Show the most recent log file |
show <NAME> | Show a specific log file |
clear | Delete all log files |
Examples
View recent logs
crab logs list
crab logs lastShow a named log file
crab logs show <NAME>Delete log files
crab logs clearList files before selecting show, because a displayed label and a filesystem
name may differ across releases. Capture last or the relevant named log before
running clear; clearing is destructive and removes every diagnostic log file
managed by this command. Logs can contain repository paths and provider
details, so review them before sharing outside the incident team.
Related commands
crab doctor: run health checks.crab errors: look up error codes.