View workspace logs in CLI
View Che workspace logs from the command line to troubleshoot startup failures and runtime errors.
Prerequisites
-
The Che workspace <workspace_name> is running.
-
Your Kubernetes CLI session has access to the Kubernetes namespace <namespace_name> containing this workspace.
Procedure
-
Get the logs from the pod running the <workspace_name> workspace in the <namespace_name> namespace:
$ kubectl logs --follow --namespace='<workspace_namespace>' \ --selector='controller.devfile.io/devworkspace_name=<workspace_name>'
Verification
-
The terminal displays workspace container logs including startup events and runtime output.