FAQ about data transformation (new version)
Frequently asked questions about data transformation (new version) in Simple Log Service.
What are the methods for cross-region data transfer in SLS and how do I choose?
SLS provides two primary methods for cross-region data transfer:
Data transformation: Best suited for row-level data synchronization and transformation without aggregation. Use data transformation when you need to replicate or filter individual log entries across regions.
Scheduled SQL: Best suited for scenarios that require cross-log aggregation, such as computing statistics or summaries. Use scheduled SQL when you need to aggregate data from multiple sources before transferring.
Why must I select a dataset for data transformation? What is a dataset?
A dataset is a core concept in SPL. It represents a collection of data that you process, which can be raw log data or the result of previous filtering and parsing operations. The default dataset is named __UNNAMED__.
For simple operations such as filtering and field extraction, you do not need to explicitly define a dataset. However, if you need to distribute data to multiple destination Logstores, such as routing error logs to a dedicated Logstore, you must use named datasets to specify which dataset goes to which destination.
What is the per-shard performance of the new version compared to the old version of data transformation?
The new version of data transformation provides higher per-shard throughput:
New version: 30 MB/s to 60 MB/s per shard.
Old version: Approximately 2 MB/s per shard in standard scenarios. In complex transformation scenarios, performance drops to approximately 1 MB/s per shard.
Does data transformation guarantee exactly-once delivery when writing to another account's Logstore?
No. Data transformation supports at-least-once delivery, not exactly-once delivery. This means that in rare cases, such as during failover or retry scenarios, duplicate data may be written to the destination Logstore. If your business requires strict consistency, design your downstream processing to handle potential duplicates.
Why is data missing for certain days in the destination Logstore?
Check the Time to Live (TTL) setting of the destination Logstore. If the __receive_time__ of the data exceeds the TTL retention period, the data is automatically deleted, which causes gaps for those days. To resolve this, increase the TTL of the destination Logstore to retain data for a longer period.
Why is the data volume in the destination Logstore much less than in the source Logstore?
This typically occurs when the index was enabled later than the data transformation job was created. Data written before the index was enabled is not indexed and does not appear in search results, even though the data exists in the Logstore.
To resolve this, reindex the data. Set the reindex time range to cover the period from before the transformation job was created to after the index was enabled. Reindexing applies only to data within the last 30 days, based on the __receive_time__ field.
Why does a data transformation job stop consuming data?
A data transformation job may stop consuming data for the following reasons:
Token expiration: The access token may have expired temporarily. The system typically refreshes the token automatically, and consumption resumes without manual intervention.
Data backlog due to high volume: If the data volume exceeds the processing capacity of the current shards, a backlog builds up and consumption appears to stall. To resolve this, split the shards in the source Logstore to increase processing concurrency.
Why does automatic shard splitting not take effect for my data transformation job?
Automatic shard splitting applies only to write operations on a Logstore. Data transformation reads from the source Logstore, and read operations do not trigger automatic shard splitting. To increase the number of shards in the source Logstore, manually split the shards.
Why do I get "Connection aborted" or "Connection reset by peer" errors during cross-region data transfer over the Internet?
These errors occur because cross-region data transfer over the Internet is subject to unstable network conditions, which can cause connection interruptions and processing delays. To resolve this, enable Transfer Acceleration in the Access Domain section of your Project overview page. Transfer Acceleration improves network quality and stability for cross-region data transfer.
Why does the UpdateETL API call return an error when the job status shows running?
Error message
SDKError: StatusCode: 400 Code: ParameterInvalid Message: Previous operation has not finished, status is RESTARTING{"httpCode":400,"requestId":"6867****************96ED","statusCode":400}
Error description
You called the UpdateETL API through the SDK at time T1, but the call failed. When you checked the console at a later time T2, the job status showed Running.
Answer
This is expected behavior caused by a timing difference. At time T1, the job was restarting and could not accept update operations. By time T2, the restart had completed, so the console displayed the status as running. This is not a system error or API issue. To avoid this, wait until the job status is fully stable after a restart before you call update operations.
Why does the SDK return the error "ParameterInvalid fromTime should be >=0 and less than current time"?
The fromTime and toTime parameters of a data transformation job are immutable after the job is created. You cannot modify these time parameters through the API or SDK. If you attempt to update fromTime after job creation, the API returns the error ParameterInvalid fromTime should be >=0 and less than current time. If you need different time boundaries, create a new data transformation job with the desired values.
Why does the UpdateETL API return "The ETL job with lang=SPL can only be updated by restarting"?
The legacy SDK does not support using the UpdateETL API to update data transformation jobs created with the new version (SPL-based). To update a new-version job, use the new OpenAPI. For more information, see the CreateETL API reference.
Why does the error "Test logs invalid" occur when I debug an SPL statement?
When you debug an SPL statement, the test data must be in JSON array format. Make sure your test data follows the format [{"key1":"value1"},{"key2":"value2"},...]. If the test data is not a valid JSON array, the debugger returns the "Test logs invalid" error.
Why does the data transformation dashboard show "key is not config as key value config"?
This error message indicates that the index configuration for the job's runtime logs is incorrect. Specifically, the index key _etl_:connector_meta.connector is not configured as a key-value index. Provide the project that contains the runtime logs and contact CloudLens technical support to verify the index configuration.
Can data transformation transfer data from the public cloud to an internal environment?
No. Data transformation cannot transfer data from an external environment (public cloud) to an internal environment due to security restrictions. However, transferring data from an internal environment to the public cloud is supported.
Does the public cloud support data transformation to a compliance cloud?
Yes. The public cloud supports data transformation to a compliance cloud. The endpoint configuration depends on whether the transfer is within the same region or across regions:
Same-region transfer: You can use either a shared endpoint or an Internet endpoint. A shared endpoint is recommended for better performance. For example, to transfer data from the Ulanqab public cloud to the Ulanqab compliance cloud, set the destination endpoint to
cn-wulanchabu-gic-1-share.log.aliyuncs.com.Cross-region transfer: You must use an Internet endpoint. For example, to transfer data from Guangzhou to the Ulanqab compliance cloud, set the destination endpoint to
cn-wulanchabu-gic-1.log.aliyuncs.com.