Note:
From now to September 5, 2022, users are exempt from CLS service fees incurred by audit log/event data generated by TKE Serverless cluster for auto-created log topics. For details, see Note on Free Log Storage for TKE Audit and Event Center.
Overview
Kubernetes Events contains information about the operations of Kubernetes clusters and the scheduling of various resources, which can help OPS personnel monitor daily changes in resources and locate problems. TKE Serverless cluster supports event persistence for all clusters and also supports the search of event flows by using PAAS services provided by Tencent Cloud or open-source software tools. After enabling this feature, your cluster events will be exported to the configured storage in real time. This document describes how to enable and use persistent storage of cluster events.
Directions
Enabling event storage
- Log in to the TKE console.
- Choose OPS Feature Management in the left sidebar to go to the Feature Management page.
- At the top of the Feature Management page, select the region and select TKE Serverless Cluster as Cluster Type. On the right side of the cluster for which you want to enable event storage, click Set, as shown in the figure below:
- On the Configure Features page, click Edit for event storage.
- On the Event Storage editing page, select Enable Event Storage and configure logsets and log topics, as shown in the figure below:
- Click Confirm to enable event storage.
Updating logsets or log topics
- Log in to the TKE console.
- Choose OPS Feature Management in the left sidebar to go to the Feature Management page.
- At the top of the Feature Management page, select the region and select TKE Serverless Cluster as Cluster Type. On the right side of the cluster for which you want to enable event storage, click Set, as shown in the figure below:
- On the Configure Features page, click Edit for event storage.
- On the Event Storage editing page, reselect logsets and log topics. Then, click OK to update the logsets and log topics.
Disabling event storage
- Log in to the TKE console.
- Choose OPS Feature Management in the left sidebar to go to the Feature Management page.
- At the top of the Feature Management page, select the region and select TKE Serverless Cluster as Cluster Type. On the right side of the cluster for which you want to enable event storage, click Set, as shown in the figure below:
- On the Configure Features page, click Edit for event storage.
- On the Event Storage editing page, deselect Enable Event Storage, as shown in the figure below:
- Click Confirm to disable event storage.
Viewing event in the CLS console
- Log in to the CLS console.
- Select Log Search on the left side bar to go to the Search and Analysis page, as shown in the figure below:
- Select the logset and log topic configured in Event Storage, set the Showed Field as needed, and click Search and Analysis. For more information, see Log Analysis.
Note:
When you enable event storage, the index will be enabled for your Topic by default.
Apakah halaman ini membantu?