$ oc -n openshift-logging get route kibana
You can find the logs for Knative Serving components using the following procedure.
Install the OpenShift CLI (oc
).
Get the Kibana route:
$ oc -n openshift-logging get route kibana
Use the route’s URL to navigate to the Kibana dashboard and log in.
Check that the index is set to .all. If the index is not set to .all, only the OpenShift Container Platform system logs will be listed.
Filter the logs by using the knative-serving
namespace. Enter kubernetes.namespace_name:knative-serving
in the search box to filter results.
Knative Serving uses structured logging by default. You can enable the parsing of these logs by customizing the OpenShift Logging Fluentd settings. This makes the logs more searchable and enables filtering on the log level to quickly identify issues. |