
Configuration Item | Description | Rule |
Consumption data format | JSON: Consume logs in JSON data format. Original content: Consume logs in their original format. | Select |
Data Range | Historical + latest: New version, can consume all data within the log topic lifecycle. Latest: Earlier version, can only consume the latest data. Note: Two log topics with different data ranges cannot use the same consumption group. For example: if Log Topic A is configured as Historical + latest and Topic B as latest, Log Topic A and B cannot use the same consumption group. | Select |
Consume log fields | Please select the log fields you need to consume. JSON format escape/non-escaping as follows: Escape, convert the value of the first-layer JSON node to String. If the value of your first-level nodes is Struct, you can choose this option to convert the Struct to String in advance during downstream storage or calculation. Non-escaping, do not modify your JSON structure and hierarchy, keep the log format consistent with that on the collection side. Note: When the first-layer node of JSON contains a numeric value, it will automatically convert to int or float after consumption. Log: {"a":123, "b":"123", "c":"-123", "d":"123.45", "e":{"e1":123,"f1":"123"}} Consumption: {"a":123,"b":123,"c":-123,"d":123.45,"e":{"e1":123,"f1":"123"}} Flatten or not flatten __TAG__ metadata as follows. __TAG__ meta information: {"__TAG__":{"fieldA":200,"fieldB":"text"}} tiling: {"__TAG__.fieldA":200,"__TAG__.fieldB":"text"} Not tiling: {"__TAG__":{"fieldA":200, "fieldB":"text"}} | Select |
Data compression format | Supports SNAPPY, LZ4, and No compression. | Select |
Extranet Consumption | After disabling, you cannot access consumption logs from the public network and can only consume over the private network. | Switch |
Consumption Log Preview | Preview your consumed log data. | - |
Service log | Related logs for consumption monitoring charts. Data is provided free by CLS. | Switch |
Parameter | Description |
User authentication mode | Currently, only SASL_PLAINTEXT is supported. |
hosts | Intranet consumption: kafkaconsumer-${region}.cls.tencentyun.com:9095 Public network consumption: kafkaconsumer-${region}.cls.tencentcs.com:9096. For details, see Log Consumption - Consumption Over Kafka Protocol. |
topic | Consumption topic ID, please copy it from the console for consumption over Kafka. Example: XXXXXX-633a268c-XXXX-4a4c-XXXX-7a9a1a7baXXXX. |
username | Configured as ${LogSetID}, the logset ID. Example: 0f8e4b82-8adb-47b1-XXXX-XXXXXXXXXX, please copy it from the console for consumption over Kafka. |
password | Configured as ${SecretId}#${SecretKey}. For example: XXXXXXXXXXXXXX#YYYYYYYY, please log in to Cloud Access Management and click Access Keys in the left sidebar. The API key or project key can be used.If your sub-account needs to use this feature, it is recommended to use a sub-account key. When authorizing the sub-account, configure both the action and resource in the access policy to the minimum permissible range. For more details, see Kafka Protocol Consumption Authorization. |
Feedback