This page is for Self-Hosted, version v3.0 (default).
For other versions, use one of these documentation indexes:
- v3.0 (default): https://docs.nvidia.com/run-ai/self-hosted/v3.0/llms.txt
- v2.26: https://docs.nvidia.com/run-ai/self-hosted/v2.26/llms.txt
- v2.25: https://docs.nvidia.com/run-ai/self-hosted/v2.25/llms.txt
- v2.24: https://docs.nvidia.com/run-ai/self-hosted/v2.24/llms.txt
view logs of a workload
Synopsis
# Get logs for a workloadrunai workload logs <workload-name># Get logs for a specific pod in a workloadrunai workload logs <workload-name> --pod=<pod-name># Get logs for a specific container in a workloadrunai workload logs <workload-name> --container=<container-name># Get the last 100 lines of logsrunai workload logs <workload-name> --tail=100# Get logs with timestampsrunai workload logs <workload-name> --timestamps# Follow the logsrunai workload logs <workload-name> --follow# Get logs for the previous instance of the workloadrunai workload logs <workload-name> --previous# Limit the logs to 1024 bytesrunai workload logs <workload-name> --limit-bytes=1024# Get logs since the last 5 minutesrunai workload logs <workload-name> --since=300s# Get logs since a specific timestamprunai workload logs <workload-name> --since-time=2023-05-30T10:00:00Z# Wait up to 30 seconds for a workload to be ready for logsrunai workload logs <workload-name> --wait-timeout=30s
runai workload logs [flags]
Options
-c, --container string The name of the container within the pod.-f, --follow Stream logs in real time.-h, --help help for logs--limit-bytes int Maximum bytes of logs to return. Defaults to no limit (e.g, 20, 2000).--pod string The pod ID. If not specified, the first pod will be used.--previous Show logs from the previous instance of the pod, if it was restarted.-p, --project string Specify the project for the command to use. Defaults to the project set in the context, if any. Use 'runai project set <project>' to set the default.--since duration Show logs newer than a relative duration (e.g., 5s, 2m, 3h).--since-time string Show logs generated after a specific RFC3339 timestamp (e.g. 2025-05-25T14:30:00Z).-t, --tail int The number of log lines to display from the end of the logs. Use -1 to show all lines. (default -1)--timestamps Include timestamps in log output.--wait-timeout duration Timeout while waiting for the workload to become ready for log streaming (e.g., 5s, 2m, 3h).
Options inherited from parent commands
--config-file string config file name; can be set by environment variable RUNAI_CLI_CONFIG_FILE (default "config.json")--config-path string config path; can be set by environment variable RUNAI_CLI_CONFIG_PATH-d, --debug enable debug mode-q, --quiet enable quiet mode, suppress all output except error messages--verbose enable verbose mode
SEE ALSO
- runai workload - workload management