Configuring Consumer End of Log

Last updated: 2019-08-20 16:56:08

PDF

Log collection feature allows users to specify the Topic of user-built Kafka pod, Topic of specified Tencent Cloud Ckafka pod, and specified CLS log topic as the consumer of log content. Log collection Agent sends collected logs to the specified Topic of specified Kafka or specified CLS log topic.

Configuring Kafka as Output End of Log

Only Kafka pods without access authentication are supported, and it needs to ensure that all nodes in the cluster can access the Kafka Topic specified by users. Please note that, when Kafka is configured as receiver, the log collection feature only supports Kafka without access authentication.

  1. Create log collection rule

  2. Specify the collecting source

  3. Specify the Topic of Kafka as log receiver

Configuring CLS as the log output end

Please note that CLS collects only logs of container clusters in the same region.

  1. Create log collection rule

  2. Specify the collecting source

  3. As TKE has independent log collection capability, you don't need to select Agent creating a log collection

  4. Specified the log topic as the log receiver