This section describes how to view the Che server logs on the console and on the command line.
Viewing the Che server logs in the web console
This section describes how to view the Che server logs in the OpenShift web console.
In the OpenShift Web Console, click Applications > Deployments.
In the Filter by label search field, type
cheto see the Che server log.
Click the View log link for the active Che deployment.
The following log is displayed.
Search the log for Che-server related diagnostics, error information, and information reported by other server components.
Viewing the Che server logs using the OpenShift CLI
This section describes how to view the Che server logs using the OpenShift CLI (command line interface).
In the terminal, run the following command to get the pods:
$ oc get podsExample
$ oc get pods NAME READY STATUS RESTARTS AGE che-11-j4w2b 1/1 Running 0 3m
To get the logs for a deployment, run the following command:
$ oc logs <name-of-pod>Example
$ oc logs che-11-j4w2b