Opening logs in Red Hat OpenShift
You can open and view microservice logs by using the Red Hat® OpenShift® Container Platform console or the Red Hat OpenShift command-line interface (CLI).
Opening logs in the OpenShift Container Platform console
- Log in to your OpenShift Container Platform cluster.
- From the navigation menu, click .
- Go to the namespace where the Cloud Pak is installed.
- Locate and click the name of the pod whose logs you want to view. The names of the Cloud Pak
pods begin with
cp4na-o
. - Click the Logs tab to open and view the logs.
Opening logs in the OpenShift CLI
- Display a list of all pods by running this
command:
<cp4na_namespace> is the namespace where the Cloud Pak is installed.oc get pods -n <cp4na_namespace>
- Identify the pod whose logs you want to view. The names of the Cloud Pak pods begin with
cp4na-o
. - Open and view the pod logs by running this
command:
<pod_name> is the name of the pod whose logs you want to view.oc logs <pod_name>
The logs are written to a standard output (stdout) stream in the terminal window.