You can collect the logs of Knative system components and perform operational analysis and troubleshooting based on the collected logs. This topic describes how to use Log Service to collect the Docker stdout and stderr logs of Knative system components.

Background information

Knative system components include:
  • knative-serving
    • activator
    • autoscaler
    • autoscaler-hpa
    • controller
    • istio-webhook
    • networking-istio
    • webhook
  • knative-eventing
    • eventing-controller
    • eventing-webhook


  1. Log on to the ACK console.
  2. In the left-side navigation pane, choose Clusters > Clusters.
  3. On the Clusters page, find the target cluster and click Manage in the Actions column.
  4. On the Cluster Resources tab, click the hyperlink on the right side of Log Service Project.
  5. In the upper-right corner of the Overview page, click Import Data.
  6. In the Import Data dialog box, select Docker Standard Output - Container.
  7. Configure the Docker standard output settings.
    For more information, see Configure log collection settings.
    The following example shows how to configure the data source to collect the standard output logs of the controller component. The following is a sample code:
        "inputs": [
                "detail": {
                    "IncludeEnv": {
                    "IncludeLabel": {
              "": "controller"
                    "ExcludeLabel": {}
                "type": "service_docker_stdout"
    Data collection
    • Enter the namespace of the controller component into the SYSTEM_NAMESPACE field of the IncludeEnv parameter, as shown in the following figure.
    • Enter the name of the controller component into the field of the IncludeLabel parameter, as shown in the following figure.
  8. In the Log Query section, click Try Now to view log collection results.