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.

Procedure
  1. In the OpenShift Web Console, click Applications > Deployments.

  2. In the Filter by label search field, type che to see the Che server log.

    link:/che/docs/images/logs/che-server-logs-on-the-console-filter.png
  3. Click the View log link for the active Che deployment.

    link:/che/docs/images/logs/che-server-logs-on-the-console-view.png
  4. The following log is displayed.

    link:/che/docs/images/logs/che-server-logs-on-the-console-display.png
  5. 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).

Procedure
  1. In the terminal, run the following command to get the pods:

    $ oc get pods
    Example
    $ oc get pods
    NAME            READY  STATUS   RESTARTS  AGE
    che-11-j4w2b    1/1    Running  0         3m
  2. To get the logs for a deployment, run the following command:

    $ oc logs <name-of-pod>
    Example
    $ oc logs che-11-j4w2b
Tags: