This is a cache of https://docs.openshift.com/serverless/1.33/observability/cluster-logging/finding-serving-logs-components.html. It is a snapshot of the page at 2024-11-24T16:42:37.980+0000.
Finding logs for Knative Serving components - Cluster logging | Observability | Red Hat OpenShift Serverless 1.33
×

You can find the logs for Knative Serving components using the following procedure.

Using OpenShift Logging to find logs for Knative Serving components

Prerequisites
  • Install the OpenShift CLI (oc).

Procedure
  1. Get the Kibana route:

    $ oc -n openshift-logging get route kibana
  2. Use the route’s URL to navigate to the Kibana dashboard and log in.

  3. 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.

  4. 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.