Command output
Each command run withdevbox exec or the TS SDK keeps its output and exit code under an execution ID. See Run commands.
1
Find the execution ID
2
Read its output
Service logs
Each service keeps its own logs, so you can see what it printed before it failed and restarted. See Services.System logs
When the answer isn’t in your own output, check what the machine logged, such as container output and kernel messages. Each line has a timestamp, its source, such ascontainers or kmsg, and its stream, stdout or stderr.
Every Devbox comes with Namespace Compute’s built-in observability. The
nsc CLI and the compute client in the TS SDK read it for any running Devbox.1
Find the instance ID
Look up the Devbox’s instance ID while it’s running. See Find the instance ID.
2
Read the logs
The CLI and TS SDK read the logs of the running Devbox.
Related
- Metrics to see CPU, memory, and disk usage.
- SSH to look around a Devbox yourself.
- Reference:
devbox logs,nsc logs, SDK observability.