Show the logs of a Job.
<job-name> - The name of the Job to run the command with. Mandatory.
--follow | -f¶
Stream the logs.
--pod | -p¶
Specify a specific pod name. When a Job fails, it may start a couple of times in an attempt to succeed. The flag allows you to see the logs of a specific instance (called 'pod'). Get the name of the pod by running
runai describe job <job-name>.
--instance (string) | -i (string)¶
Show logs for a specific instance in cases where a Job contains multiple pods.
Return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. The flags since and since-time cannot be used together.
Return logs after specified date. Date format should be RFC3339, example:
--tail (int) | -t (int)¶
# of lines of recent log file to display.
Include timestamps on each line in the log output.
Set the logging level. One of: debug | info | warn | error (default "info").
--project | -p (string)¶
Specify the project to which the command applies. By default, commands apply to the default project. To change the default project use
runai config project <project-name>.
--help | -h¶
Show help text.
The command will show the logs of the first process in the container. For training Jobs, this would be the command run at startup. For interactive Jobs, the command may not show anything.
- Training Workloads. See Quickstart document: Launch Unattended Training Workloads.