Help Center/ Cloud Container Engine/ FAQs/ Node/ Node Running/ How Do I Collect Logs of Nodes in a CCE Cluster?
Updated on 2024-07-04 GMT+08:00

How Do I Collect Logs of Nodes in a CCE Cluster?

The following tables list log files of CCE nodes.

Table 1 Node logs

Name

Path

kubelet log

  • For clusters of v1.21 or later: /var/log/cce/kubernetes/kubelet.log
  • For clusters of v1.19 or earlier: /var/paas/sys/log/kubernetes/kubelet.log

kube-proxy log

  • For clusters of v1.21 or later: /var/log/cce/kubernetes/kube-proxy.log
  • For clusters of v1.19 or earlier: /var/paas/sys/log/kubernetes/kube-proxy.log

yangtse log (networking)

  • For clusters of v1.21 or later: /var/log/cce/yangtse
  • For clusters of v1.19 or earlier: /var/paas/sys/log/yangtse

canal log

  • For clusters of v1.21 or later: /var/log/cce/canal
  • For clusters of v1.19 or earlier: /var/paas/sys/log/canal

System logs

/var/log/messages

Container engine Logs

  • For Docker nodes: /var/lib/docker
  • For containerd nodes: /var/log/cce/containerd
Table 2 Add-on logs

Name

Path

everest log

  • For v2.1.41 or later:
    • everest-csi-driver: /var/log/cce/kubernetes
    • everest-csi-controller: /var/paas/sys/log/kubernetes
  • For version earlier than v2.1.41:
    • everest-csi-driver: /var/log/cce/everest-csi-driver
    • everest-csi-controller: /var/paas/sys/log/everest-csi-controller

npd log

  • For v1.18.16 or later: /var/paas/sys/log/kubernetes
  • For versions earlier than v1.18.16: /var/paas/sys/log/cceaddon-npd

cce-hpa-controller log

  • For v1.3.12 or later: /var/paas/sys/log/kubernetes
  • For versions earlier than v1.3.12: /var/paas/sys/log/ccehpa-controller