- Documentation
Torch Log Service
User Guide
Data processing
Data transformation
Create data transformation task
Data transformation
Create data transformation task
Create data transformation task
TLS provides flexible and convenient data transformation capabilities, supporting data cleansing, filtering, content masking, data splitting, and data distribution for collected log data. After you create a data transformation task, TLS automatically reads the data from the source log topic and processes it according to the specified processing rules, and then writes the results to different log topics.
This topic describes how to create a data transformation task through the console.
Prerequisites
- Log data has been collected. For detailed steps, see Overview.
- A log project and log topic are created.
Steps
- Select the region where log service is located from the top navigation bar.
- In the left navigation bar, select Data processing > Data transformation.
- On the Data transformation - Task list page, click Create data transformation task.
- On the data transformation task creation page, complete the following configuration.
- Fill in the basic settings for the data transformation task, and then click Next: processing rule configuration.
- Write transformation rules.
- Follow the onscreen instructions to enter transformation rules in the input box. TLS supports a variety of DSL syntax functions. On the transformation functions tab, you can click a function name to view syntax descriptions and examples, and insert specified syntax with one click to quickly write transformation rules. For the list of supported syntax functions, see Functions overview.
- Click Preview execution to test transformation rules.
- Follow the page instructions to test by using log data from the source log topic or specified test data.
- If the page prompts DSL code compilation failed, it means the transformation statement contains errors. You can refer to the error information provided and fix the syntax issue in the specified line, and then retest the transformation rule.
- If you confirm the data transformation results are correct, click Complete task creation.
- In the Enable immediately after task creation dialog, select whether to enable the task right away.
- Enable immediately: Start the data transformation task right after completing task configuration.
- Enter pause state: The data transformation task will be paused after configuration is completed and needs to be manually started later.
- Cancel: Cancel task creation for data transformation.
Tip
When a data transformation task is stopped or has completed, TLS does not automatically delete its associated consumer group instances. It is recommended to promptly clean up data transformation tasks that are stopped or completed and confirmed to be unused, reducing unnecessary consumer group instances.
Related operations
- After the data transformation task starts, TLS records the execution status and progress of the task in the service logs. You can view and analyze the relevant log data in the corresponding log topic. For more details, see Service log fields.
- After you successfully create a data transformation task, you can modify or delete the task as needed for your business requirements. For detailed instructions, see Manage data transformation tasks.
- We recommend enabling indexing for the target log topic to facilitate query and analysis of the processed data. Refer to the steps Configure indexes.
Last updated: 2026.07.30 17:29:25