Configuration Item | Description | Rule | Required |
Target CKafka Topic Ownership | Deliver CLS logs to the current root account's CKafka Topic. Deliver CLS logs to another root account's CKafka. For example, if account A ships logs to account B's CKafka Topic via CLS, account B must configure an access role in Cloud Access Management (CAM). After configuration, account A needs to enter the Role ARN and external ID in the CLS console to enable cross-account delivery. The steps to configure the role are as follows: 1. Create new role. Account B logged in to the CAM role management page. 1.1 Create an access policy, with a policy name such as cross_shipper. For policy syntax, see the following: Note: Note: The authorization in the example follows the minimum permission principle, with the resource configured as shipping to only the CKafka instance (ckafka-12abcde3) in the Guangzhou region. Please authorize according to the actual situation.
1.2 Create a new role, select Tencent Cloud account as the role carrier, choose other root account for the cloud account type, then input Account A's ID, such as 100012345678, check enable verification and configure the external ID, for example: Hello123. 1.3 Configure role policy, configure access policy for the role, and select the pre-configured access policy cross_shipper (example). 1.4 Save the role, for example: uinA_writeCLS_to_CKafka. 2. Configure the carrier for the role. In the CAM role list, find uinA_writeCLS_to_CKafka (example), click the role, select role carrier > management carrier > add product service > CLS, then click refresh. The current role's carriers are two: account A and cls.cloud.tencent.com (CLS log service). 3. Account A logs in to CLS and fills in Role ARN and external ID. The two items of info need to be provided by account B: Account B finds the role uinA_writeCLS_to_CKafka (example) in the CAM role list, clicks to view the RoleArn of the role, such as qcs::cam::uin/100001112345:roleName/uinA_writeCLS_to_CKafka. The external ID, such as Hello123, is visible in the role carrier. Note: Fill in the Role ARN and external ID. Note: Do not enter extra spaces, as this will cause permission verification to fail. Cross-account delivery will generate read traffic fees for the log topic under Account A. | current root account other root account | No |
CKafka instance | The CKafka Topic in the same region as the current log topic is used as the delivery target. In the cross-account delivery scenario, the user manually fills in the CKafka instance ID and Topic name. | List selection | Required |
Format of Data to Ship | Select Original content to deliver the user's raw logs. | List selection | Required |
Data compression format | no compression\\SNAPPY\\LZ4. | List selection | Required |
Shipping log preview | Preview your delivered log data. | - | - |
Configuration Item | Description | Rule | Required |
Target CKafka Topic Ownership | Deliver CLS logs to the current root account's CKafka Topic. Ship CLS logs to another root account's CKafka. For example, if account A ships logs from CLS to account B's CKafka Topic, account B must configure a role in CAM (Access Management). After configuration, account A needs to enter the Role ARN and external ID in the CLS console to enable cross-account delivery. The steps to configure the role are as follows: 1. Create role. Account B logged in to the CAM role management page. 1.1 Create an access policy, with a policy name such as cross_shipper. For policy syntax, see the following: Note: Note: The authorization in the example follows the minimum permission principle, with the resource configured as shipping to only the CKafka instance (ckafka-12abcde3) in the Guangzhou region. Please authorize according to the actual situation.
1.2 Create a new role, select Tencent Cloud account as the role carrier, choose other root account for the cloud account type, then input Account A's ID, such as 100012345678, check enable verification and configure the external ID, for example: Hello123. 1.3 Configure role policy, configure access policy for the role, and select the pre-configured access policy cross_shipper (example). 1.4 Save the role, for example: uinA_writeCLS_to_CKafka. 2. Configure a carrier for the role. Find uinA_writeCLS_to_CKafka (example) in the CAM role list, click the role, select role carrier > Entity management > add product service > CLS, then click update. The current role's carriers are two: account A and cls.cloud.tencent.com (CLS log service). 3. Account A logs in to CLS and fills in Role ARN and external ID. The two items of info need to be provided by account B: Account B finds the role uinA_writeCLS_to_CKafka (example) in the CAM role list, clicks to view the RoleArn of the role, such as qcs::cam::uin/100001112345:roleName/uinA_writeCLS_to_CKafka. The external ID, such as Hello123, is visible in the role carrier. Note: Fill in the Role ARN and external ID. Note: Do not enter extra spaces, as this will cause permission verification to fail. Note: Cross-account delivery will generate read traffic fees for the log topic under Account A. | current root account other root account | No |
CKafka instance | The CKafka Topic in the same region as the current log topic is used as the delivery target. | List selection | Required |
Format of Data to Ship | Option JSON, deliver logs in JSON format. | List selection | Required |
Escape/Do not escape in JSON format | Escape: Convert the value of the first-level nodes in the JSON to String. If the value of your first-level nodes is Struct and you need to convert the Struct to String in downstream storage or computation, you can select this option. Examples: Original log: {"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}} Deliver to CKafka: {"a":"aa","b":"{\\"b1\\":\\"b1b1\\", \\"c1\\":\\"c1c1\\"}"} Non-escaping, do not modify your JSON structure and hierarchy, keep the log format consistent with that on the collection side. Example: Original log: {"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}} Deliver to CKafka: {"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}} Note: When the first-layer node of JSON contains a numeric value, it will automatically convert to int or float after delivery. Original log: {"a":123, "b":"123", "c":"-123", "d":"123.45", "e":{"e1":123,"f1":"123"}} Deliver to CKafka: {"a":123,"b":123,"c":-123,"d":123.45,"e":{"e1":123,"f1":"123"}} | List selection | Required |
Log Fields to Ship | Flatten or not flatten the __TAG__ metadata based on your actual business scenario. __TAG__ meta information: {"__TAG__":{"fieldA":200,"fieldB":"text"}} Flatten: {"__TAG__.fieldA":200,"__TAG__.fieldB":"text"} Not Tiled: {"__TAG__":{"fieldA":200, "fieldB":"text"}} | | |
Data compression format | no compression\\SNAPPY\\LZ4. | List selection | Required |
Shipping log preview | Preview your delivered log data. | - | - |
Feedback