Viewing cluster logs in Red Hat OpenShift

To track your running pods, you can view the logs that are streamed in real time in the Red Hat® OpenShift® web console or CLI. For persistent logging, Red Hat OpenShift cluster logging or a custom logging solution must be deployed for your cluster, to aggregate and store all node and container logs, including log data for your running flows and integration servers.

Realtime log streaming

From the Red Hat OpenShift web console, you can view streamed logs as follows:

  1. Navigate to Workloads > Pods.
  2. Switch to the namespace (project) where the IBM® App Connect Operator and its custom resource instances are deployed.
  3. Locate and then click the name of the pod whose logs you want to view. The pod name is typically in the format name-autogeneratedCharacters, where name is the metadata.name value of an Operator or instance; for example, dashbdname-dash-6d944694b4-dsrlj for a running instance of the App Connect Dashboard, or intruntimename-ir-79f9bd5bf7-xpc74 for an integration runtime.
    Locating the pod name for a Dashboard instance in the Red Hat web console
  4. Click the Logs tab to view the streamed logs. You can click Show full log to view the entire log rather than the last 1,000 lines, open the raw file in another window, or download the log to a .log text file.

From the Red Hat OpenShift CLI, you can view streamed logs by running oc commands. You can also view streamed logs from the Kubernetes CLI by running kubectl commands. For more information, see Retrieving logs.

Persistent logging

Consult your cluster administrator to establish which logging solution is deployed and obtain information about how to view the logs that are generated for resources in your namespace.

If OpenShift cluster logging is deployed, you can view the logs by using the OpenShift web console or CLI, or you can use the Kibana console to query, discover, and visualize your log data. For more information, see Viewing logs for a resource and Log visualization with Kibana. For detailed information about Kibana, see the Kibana documentation.