Help & Documentation>Tencent Kubernetes Engine

TKE-log-agent Description

Last updated: 2023-09-26 15:18:50

Feature Overview

Component Description

TKE-log-agent is a log collection component for Kubernetes clusters, allowing users to non-intrusively collect container standard output logs, container internal logs, and node logs.

Resource objects deployed in the cluster

Kubernetes Object Name
Local Disk Types
Resource Amount
Namespace
tke-log-agent
Daemonset
0.21C126M
kube-system
cls-provisioner
Deployment
0.1C64M
kube-system
logconfigs.cls.cloud.tencent.com
CustomResourceDefinition
-
-
cls-provisioner
ClusterRole
-
-
cls-provisioner
ClusterRoleBinding
-
-
cls-provisioner
ServiceAccount
-
kube-system
tke-log-agent
ClusterRole
-
-
tke-log-agent
ClusterRoleBinding
-
-
tke-log-agent
ServiceAccount
-
kube-system

Use Cases

When enabling audit log collection for a self-deployed cluster, the TKE-log-agent is installed by default and collects Apiserver audit logs.
Collect container standard output logs, container internal logs, and node logs through log collection rules.

How It Works

1. Upon detecting that a user has created a collection rule, the CLS-provisioner generates a CLS-side collection configuration based on the rule's settings and synchronizes it with the CLS-side server.
2. TKE-log-agent maps log directories to a unified directory according to the collection rules.
3. Loglistener synchronizes the collection configuration from the CLS server and collects logs according to the configuration, reporting them to the CLS side.

Related documentation