TLS provides flexible and convenient data transformation capabilities, supporting data cleansing, filtering, content masking, data splitting, and data distribution for collected log data. This topic describes the principles, capabilities, and limitations of data transformation.
Features overview
In big data and stream computing scenarios, logs often need to be processed into structured data. For example, extracting fields from logs with mixed formats, formatting log content, or distributing logs to multiple downstream data processing systems for storage or computation for different business systems. TLS offers real-time data transformation services, delivering data cleansing, filtering, content masking, data splitting, and data distribution for log data. After creating a data transformation task, TLS establishes a consumer group to extract log data from the source log topic. And then TLS processes these logs according to the specified transformation rules and DSL (Domain Specific Language) functions, and writes the processed data into the designated log topic for subsequent log analysis and data archiving.
The data transformation feature includes a range of built-in DSL functions, supporting complex scenarios for data structuring, cleansing, and masking. For supported transformation syntaxes, see data processing syntax. In addition, TLS provides service logs with the data transformation feature. You can view task progress and processing rates. For more details, see Service log overview. Use cases
The data transformation feature supports processing capabilities for various scenarios:
- Structured processing: If logs can not be structured during collection, you can collect them to the server first and then use the data transformation feature for complex structuring tasks, such as field extraction and format conversion, which helps with subsequent SQL statistics and analysis. Suitable for stream processing, data warehouse computation, and similar scenarios.
- Cleaning and filtering: Uniformly filter diverse and complex logs, retaining only key information that requires attention. Before filtering, you can set a short data retention period for logs, reducing storage volume and lowering costs.
- Content desensitization: Apply desensitization to sensitive information in logs, such as mobile numbers, ID numbers, passwords, and other business log details.
- Data splitting and distribution: After unified log transformation, split one log into multiple records and deliver them to different downstream systems.
Billing description
Notice
- Concurrent unit data load: The concurrent unit's data load affects the performance of data transformation.
- During data transformation, the data load of a single concurrent unit depends on the amount of data stored in its corresponding source log topic shard. If log data written to the source log topic is unevenly distributed across multiple partitions, it will cause hot partitions during the execution of data processing jobs, resulting in delayed processing progress on some partitions.
- If you use the HashKey routing shard mode to write log data to the source log topic, allocate shard traffic reasonably when writing to minimize uneven distribution of data across shards. For more information regarding data writing, see PutLogs.
- TLS writes transformed data to the target log topic using the PutLogs API. The data writing rate depends on the number of shards in the target log topic.
- When writing the processing results to the target log topic, you must comply with the data write specifications of the log topic. If the target log topic has fewer shards and a large amount of data is written, it may cause processing delay. We recommend that you valuate the number of shards for the target log topic or enable the auto split feature based on the data volume written to the target log topic. For details, see basic resources and data read and write. For information about enabling the shard auto split feature, see Manage shards.
- When a write limitation error occurs during data transformation to the target log topic, the system performs unlimited retries to ensure data integrity. However, this affects transformation progress and causes delays for jobs handling the current source shard.
Limits
Basic concepts