SCF Cloud Insight
Features
Unify the retrieval and analysis entry for SCF call logs.
Enable SCF call log collection in batches.
Prerequisites
Directions
Enabling SCF Call Log Collection
Step 1: Go to the SCF Product Page
2. In the left navigation bar, select Cloud Insight to enter the Cloud Insight page.
3. In Cloud Product Logs, select and click Serverless Cloud Function (SCF).
Step 2: Enable After selecting an instance, you can view the CLB access analysis dashboard related to the selected instance.
1. In SCF, choose Collection Management > Instance Collection.
2. Select the region where the target SCF function is located. In the SCF list, find and select one or more target SCF functions.
3. Click Enable log collection.
4. In the Enable Log Collection dialog box, select or create a target log topic, and click Confirm to enable call log collection for the target SCF. Note:
The target log topic and log set are dedicated to SCF by default. The log topic name is SCF_logtopic_${automatically generated unique identifier}, and the log set name is SCF_logset_${automatically generated unique identifier}.
Viewing the CLB Access Analysis Dashboard
1. After access log collection is enabled, select Dashboard in the top Tab bar. In the SCF drop-down list, select the instance for which access log delivery has been enabled.
2. After selecting an instance, you can view the access analysis dashboard related to the selected instance.
Retrieving and Analyzing SCF Call Logs
1. After enabling call log collection for SCF, select Log Search in the top tab bar.
2. In the SCF drop-down list, select the target SCF with access log collection enabled.
3. After selecting the SCF, you can retrieve and analyze the function call logs related to the selected SCF instance.
Disabling SCF Call Log Collection
1. In SCF, choose Collection Management > Instance Collection.
2. Select the SCF for which you want to disable log collection in the SCF list, and click Disable Log Collection.
3. In the pop-up for disabling collection, you need to select Disable, and then click Confirm to disable log collection for the selected SCF instance.
Note:
Disabling log collection only means that newly generated logs will no longer be collected. Existing logs that have already been collected will continue to be stored in the log topic until they expire, during which storage fees will continue to be incurred. If you do not wish to continue storing these logs, see the following steps to delete the log topic. (Note: In the SCF scenario, logs from all instances are delivered to the same default storage topic. Deleting this storage topic will delete all data. Please delete with caution.) 1. Choose Collection Management > Log Topic, locate the target topic, and click Delete.
2. Click Next. After performing the secondary confirmation, click Delete.