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:
- Navigate to .
- Switch to the namespace (project) where the IBM® App Connect Operator and its custom resource instances are deployed.
- 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-dsrljfor a running instance of the App Connect Dashboard, orintruntimename-ir-79f9bd5bf7-xpc74for an integration runtime.
- 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.