EKSCI provides log collection capability and supports sending the standard output logs and file logs of the containers in the cluster to CLS. It is applicable for uses who want to store and analyze the service logs in EKSCI.
Prepare a log topic of CLS to be used as the log reporting terminal. You can view and search the logs under the log topic after reporting the logs. If there is no appropriate log topic, see Creating a log topic.
Note:You need to enable log collection when creating the container instance.
Log in to the TKE console. Click Create Instance.
Configure the parameters of the container instance based on actual needs. For more information, see Creating a Container Instance. After configuration, click Next.
Enable log collection on theOther Configurations page.
Authorization is required when the log collection feature is enabled for the first time. The role TKE_QCSLinkedRoleInEKSLog will be bound to your account by default, and the default policy configured for this role is QcloudAccessForTKELinkedRoleInEKSLog. The role will have permissions such as log uploading. Select the following parameters after the feature is enabled:
*
. If there are more than one collection path, separate them with ,
.NoteIf role authorization capability is required when enabling log collection, the role bound to the instance must have the write permission on "cls:pushLog". For more information, see here. Only one role can be bound to a container instance.
If you confirm that you have reported logs but they are not displayed, please check the following:
If the problem persists, submit a ticket to contact us.
Was this page helpful?