Enable real-time log subscription
This topic describes how to enable real-time log subscription in the Umeng console to ship U-App, U-MiniProgram, and U-Web logs to Log Service.
Prerequisites
-
You have collected data from the Umeng U-App, U-MiniProgram, or U-Web products.
-
You have created a Project and a LogStore. For more information, see Create a Project and Create a LogStore.
We recommend that you name the Project
umeng-cn-{region}-{custom}. In this Project, you must create three LogStores. We recommend that you name themdwd_ump_log_uapp_event_json_rt,dwd_ump_log_uweb_rt, anddwd_ump_log_mini_program_event_rt.
Procedure
-
Log in to the Umeng Data Trust console.
-
On the Cloud Console page, in the Log Service (SLS) section, click Activate Now.
-
In the Go to Alibaba Cloud Console step, confirm you have created the required Project and LogStore, then click Completed, Next.
-
In the Configure Information step, enter the following information and click Submit.
Parameter
Description
Alibaba Cloud account UID
Enter the UID of the Alibaba Cloud account that contains your Log Service Project.
Select region
Select the region where your Log Service Project is located.
SLS Project Name
Enter the name of the Log Service Project that you created.
-
In the Authorization step, click Authorize and follow the on-screen instructions.
After authorization, Umeng uses the AliyunMpuappAccessingSLSRole role to access Log Service resources.
WarningDo not revoke the authorization or delete the AliyunMpuappAccessingSLSRole role. Otherwise, logs cannot be shipped to Log Service.
After completing the authorization, return to the Umeng console and confirm the activation result.
Next steps
After log data is shipped to Log Service, you can query and analyze the data, download it, set up data shipping and data transformation, and create alerts. For more information, see General operations for cloud service logs.