General troubleshooting - viewing logs in Red Hat OpenShift

General troubleshooting tips for viewing logs in Red Hat OpenShift with the console and CLI.

zosConnect-3.0 Applies to zosConnect-3.0.

Containers Applies to z/OS Connect container deployments.

General troubleshooting tips (Console)

  1. From the Red Hat OpenShift console, go to Workloads > Pods.
  2. Select the project that the IBM® z/OS® Connect API is installed in from the drop-down menu to view the status of all the pods in this project.
  3. If you want to see the status and details for one of the pods, click the pod that you want to investigate.
  4. If you want to see the logs for the pod, click Logs.

For more information, see A launch icon to indicate a link opens a new tab or window. Configuring and using logging in OpenShift Container Platform in the Red Hat documentation.

General troubleshooting tips (CLI)

  • To find out the status of all the pods in a project, run the following command:

    oc get pods -n <project>

    Where <project> is the project (namespace) where z/OS Connect API is deployed.

  • To see the status of a particular pod, run the following command:

    oc get pods | grep <pod_name>

    Where <pod_name> is the pod that you want to see status for.

  • To see a pod's logs, run the following command:

    oc logs -f <pod_name> -n <project>

    Where

    • <pod_name> is the pod that you want to see status for.
    • <project> is the project (namespace) where the z/OS Connect APIs is deployed.