|SCF cannot complete the automatic migration.||Your Tencent Cloud account has not completed the identity verification. Please complete the identity verification, and then associate your functions with a log topic to save the function invocation logs.|
|Your Tencent Cloud account has overdue payment. Please top up your account first, and then associate your functions with a log topic to save the function invocation logs.|
|The role |
|SCF will not perform automatic migration.||The functions under your Tencent Cloud account were not invoked during the migration statistical period (March and April 2021). The system determines that you are an inactive user of SCF and will not create log service related resources for you. Before invoking the function again, you need to manually associate your function with a log topic to save the function invocation logs.|
Cloud Log Service (CLS) is a one-stop logging solution. It can be easily integrated in just five minutes, freeing you from resource or scaling issues. CLS offers solutions for collecting, storing, searching, and analyzing logs, helping you identify business issues, monitor metrics, ensure security, and simplify operations.
After SCF is connected to CLS, function logs can support:
Starting from January 29, 2021, the new functions will use the default log topic if no destination log topic is specified, and their invocation logs will be delivered to the specified topic according to the function log configuration.
Existing functions will be migrated by region from April 5 to June 30, 2021. We will associate the default destination log topic with functions for which you have not configured logging, while the functions for which you have already configured logging will not be affected.
- If you want to specify the destination log topic for function logs, please configure it before the migration of existing functions starts. For the configuration method, please see Log Delivery Configuration (Legacy).
- We recommend you not change the log configuration during the migration window of existing functions so as to avoid exceptional log query caused by log delivery to different topics.
- Existing functions will be migrated in stages. For specific migration time, please see the SMS and Message Center notification you receive.
When the default log shipping feature is enabled, SCF will activate CLS automatically and ship function invocation logs to the log topic (prefixed by "SCF_logtopic") in the SCF-specific logset (prefixed by "SCF_logset"). If the log topic and logset do not exist, new ones will be created automatically. Logs are stored for seven days by default. You can check and manage them on the CLS console.
To ensure the compatibility of the
GetFunctionLogsAPI, the input parameter
FunctionNameis optional, but we recommend you enter it; otherwise, log acquisition may fail.
After the CLS service is commercialized, Tencent Cloud still provides a certain free tier for all users in each region. The SCF-specific topic will consume the free tier. For more information on CLS billing, please see Free Tier.
For more information on the format of logs delivered from SCF to CLS, please see Log Search Guide.
After SCF logs are connected to CLS, return data will be retained for asynchronously invoked functions, which will be written to
SCF_Message in the format of
Response RequestId:xxx RetMsg:xxx.
The value of
SCF_Messageis limited to 8 KB in length, and excessive parts will be discarded.