tencent cloud

Cloud Log Service

FluentBit Log Upload

PDF
Focus Mode
Font Size
Last updated: 2025-12-03 11:22:42

Overview

Cloud Log Service (CLS) supports uploading logs from FluentBit to CLS in the following two ways.
FluentBit Go extension
Uploading over the Kafka protocol

Operation Steps

FluentBit Go Extension

Note:
This extension is dependent on the Go environment.
1. Go to fluent-bit-go-cls and obtain the CLS extension FluentBit.
2. Run the following command to build the CLS extension FluentBit.
go build -buildmode=c-shared -o fluent-bit-go.so
3. Run the following command to run the CLS extension FluentBit.
fluent-bit -c example/fluent.conf -e fluent-bit-go.so
4. Configure the configuration file example/fluent.conf of FluentBit.
[OUTPUT]
Name fluent-bit-go-cls
Match *
# TODO: Configure the following parameters:
TopicID YOUR_TOPIC_ID
CLSEndPoint YOUR_ENDPOINT
AccessKeyID YOUR_PROJECT_SK
AccessKeySecret YOUR_PROJECT_AK
Parameter Description
Parameter Name
Description
TopicID
ID of the log topic to which the log will be uploaded.
CLSEndPoint
Domain name of the region where the target log topic is located. See Available Regions.
Example:
Private network domain name of Guangzhou: ap-guangzhou.cls.tencentyun.com
Public network domain name of Guangzhou: ap-guangzhou.cls.tencentcs.com
AccessKeyID
Part of the cloud API key. SecretId is used to identify the API caller's identity.
AccessKeySecret
Part of the cloud API key. SecretKey is the key used to encrypt the signature string and verify the signature string on the server side.
Note:
Ensure that the account associated with the cloud API key has the appropriate minimum permissions for FluentBit log upload.

Uploading Logs in FluentBit over the Kafka Protocol



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback