Export standard logs (Public Preview)
Mobile Analysis Service (MAS) lets you export instrumentation log data for custom processing and analysis. This service exports data offline from mPaaS Open Data Processing Service (ODPS) tables to your specified ODPS tables.
MAS provides two export methods: scheduled daily export and manual data backfill.
Scheduled daily export: A scheduled task syncs the source data table to a specified destination table every morning. This task exports data from the previous day (T-1).
Manual data backfill: Exports historical data or data from failed daily tasks. You can backfill data from the last 90 days.
Create a log export task
You can create two types of tasks: scheduled daily and data backfill.
Scheduled daily task: Syncs new log data from the previous day. The task runs daily from 02:00 to 08:00.
Data backfill task: Backfills data for a specific date if a scheduled daily task fails. You can backfill data from the last 90 days.
Create a daily routine task
Scheduled daily tasks are triggered by task templates.
Procedure
Log on to the mPaaS console and select your application from the application list.
In the navigation pane on the left, choose Mobile Analysis > Log Management.
On the page that appears, navigate to the Log Export > Task Template Management tab. Click Create Task Template and configure the template in the dialog box that appears. The configuration items are described as follows:
Configuration item
Required
Description
Task template name
Yes
A custom name for the template.
Executor group
Yes
Executors for data export tasks run in cluster groups. Executor groups include shared executor groups (default, for all customers) and dedicated executor groups.
Destination database Access ID
Yes
The Access ID of the destination MaxCompute (formerly ODPS) database. This is your Alibaba Cloud account.
AccessSecret for the destination database
Yes
The key for the destination MaxCompute database.
Destination database ODPSProject
Yes
The project name of the destination MaxCompute database.
Destination database Region
Yes
The region where the destination MaxCompute database is located. The system automatically generates an Endpoint based on the MaxCompute region table.
Source data table
Yes
You can export data from the following MAS log tables:
uniform_behavior: behavior log table
uniform_behavior_auto: automated log table
monitor_performance: performance log table
uniform_exception: exception log table
NoteYou can create only one task template for each log type.
Destination data table
Yes
The table to which the data will be exported. Enter the name of the destination table for the corresponding log type. Then, use the generated table creation statement to create the table in MaxCompute.
After you configure the template, click OK. The new template appears in the task template list.
The Run switch for the new template is on by default. This means that scheduled export tasks will be generated. The task appears in the Task Management list with the type Scheduled Daily. If you turn off the Run switch, no more scheduled daily export tasks will be generated.
Create a data backfill task
Data backfill tasks are also triggered by task templates.
Procedure
In the navigation pane on the left, choose Mobile Analysis > Log Management.
On the page that appears, navigate to the Log Export > Task Management tab and click Create Data Backfill Task.
In the task creation dialog box, select a Data Backfill Date and a Task Template, and then click Confirm.
The task runs immediately after it is created. The new data backfill task appears in the Task Management list with the type Data Backfill Task.
Manage task templates
Both scheduled daily exports and manual data backfills run during specific periods each day. A separate task is generated for each day's log data export.
MAS lets you use templates to create and manage log export tasks that share the same data source and destination table. This reduces repetitive configuration and improves efficiency.
The task template list displays the template name, task type, executor group, destination database region, creation time, and running status. You can create, run, view, edit, and delete templates.
Create a task template
For more information about how to create a template, see Create a scheduled daily task.
View template details
In the task template list, find the template that you want to view and click View in the column on the right.
Edit a template
In the task template list, find the template that you want to edit and click Edit in the column on the right. Modify the template information and confirm the changes. The changes apply to future tasks and do not affect tasks that have already run.
Delete a template
In the task template list, find the template that you want to delete, click Delete in the column on the right, and confirm the deletion.
Manage log export tasks
The Task Management page displays all log tasks generated from templates, which are run either on a schedule or in batches. The list displays the task ID, task type, executor group, task template name, running time, and execution status.
On the Task Management page, select a task from the list and click View Log to view its execution details. If a task failed, you can check the log to determine the cause of the failure. You cannot view logs for tasks that have not yet run.
You can filter log export tasks by time range, task type, and execution status.
Manage executor groups
An executor group is a program that executes export tasks. MAS uses a grouped cluster architecture for executors to support high-volume data exports for multiple users. This design ensures that the system provides a stable and responsive service. By default, log exports use a shared executor group. If you have stricter requirements for timeliness and performance, you can submit a ticket to request a dedicated executor group.
The executor list displays all shared and dedicated executors used for log export in the current application. The list displays the executor group name, executor group type, total tasks executed, total data volume exported, current running tasks, current queued tasks, and running status.
The details are as follows:
Executor group: Can be shared or dedicated.
Total tasks executed: The total number of tasks executed by the executor group.
Total data volume exported: The total volume of log data exported by the executor group.
Current running tasks: The tasks that are currently running in the executor group.
Current queued tasks: The tasks that are currently in the queue for the executor group.
Running status: The running status of the executor group. The status can be Smooth or Congested. The status is Congested if the number of queued tasks is greater than 0.
Task run overview
The task execution overview displays execution data for log export tasks. You can query the log export status for a specified time range. Note that the start and end dates you select correspond to the actual task execution dates.
Task dashboard
This dashboard displays statistics about task execution, including the number of successful, failed, and running tasks. It also includes a line chart that shows the trends of successful and failed tasks over time.
Executor group dashboard
This dashboard displays the task execution details for shared and dedicated executor groups separately. These details include the total number of successful tasks and the total volume of exported data.