View Cluster Control Plane Logs
Cloud Container Engine (CCE) allows the collection of control plane component logs from managed clusters through the Baidu AI Cloud Log Service (BLS). This document provides guidance on enabling and viewing these logs via the CCE console.
For control plane component logs in standalone clusters, you can retrieve log information by setting up collection rules.
Description
Enabling control plane component logs will incur related fees. For detailed billing instructions, please refer to Baidu AI Cloud Log Service (BLS) Product Billing.
Introduction to control plane components
It currently supports collecting logs from the following control plane components:
| Component | Description |
|---|---|
| kube-apiserver | The kube-apiserver component is a control plane component for exposing the Kubernetes API. Any resource requests and invocations are performed through this component. For details, refer to the official document. |
| kube-controller-manager | The kube-controller-manager component is the management and automation control center of the cluster, which is responsible for managing various types of controllers in the cluster, such as node controller, replication controller, etc. For details, refer to the official document. |
| kube-scheduler | The kube-scheduler component is primarily responsible for scheduling resources across the entire cluster. For details, refer to the official document. |
Prerequisites
- The log collection component CCE log operator has been installed. For details, refer to CCE Log Operator Component Introduction.
Operation steps
- Sign in to Cloud Container Engine (CCE) console .
- Select Cluster List in the left navigation bar.
- On the Cluster List page, click on the desired cluster to open the cluster management page.
- In the left navigation bar of the Cluster Management page, select O&M & Management - Log Center.
- Click "Control Plane Logs" to access the control plane logs page.

-
Click Enable Now and wait for successfully enabled.
Description
When you enable the collection of control plane component logs, the system will automatically create a {Cluster ID}-k8s-log logstore in your BLS service account.
View logs
Once the collection of control plane component logs is successfully enabled, you can view the collected log data through the configuration interface.
- On the Log Center page, select the Control Plane Logs tab.
- In the component selection dropdown menu, select the control plane component whose logs need to be viewed to access the relevant log information.

Description
To view original logs, you need to configure indexes for the logstore. You can configure indexes on the Log Service console. For details, refer to Index Configuration .
Disable log
You have the option to disable the control plane component log collection.
- On the cluster list page, click the target cluster name, then select Log Center - Control Plane Logs in the left navigation bar.
- On the control plane component log tab, click Disable Log.
Description
After disabling logs, the corresponding logstore and collected log data will not be deleted. Manually delete it on the Log Service console.
