Export real-time logs (Public Preview)

Updated at:

The Mobile Analysis Service (MAS) lets you export real-time logs that clients upload to the server. The logs are exported from the mPaaS ODPS table to your ODPS table. This feature exports full logs. It differs from the real-time log pull feature, which retrieves client diagnostic logs based on user IDs.

You can use templates in MAS to create and manage log export tasks that share a data source and destination table. This reduces repetitive configuration and improves efficiency.

Create a real-time log export task

Procedure

  1. Log on to the mPaaS console and select your application from the application list.

  2. In the navigation pane on the left, choose Mobile Analysis > Log Management.

  3. Click the Real-time Log Export tab, and then click Create Task. In the window that appears, configure the task. The configuration items are described in the following table.

    Configuration item

    Required

    Description

    Task name

    Yes

    Set the template name.

    Destination database AccessID

    Yes

    The access ID for the destination MaxCompute database. This is your Alibaba Cloud account.

    Destination database AccessSecret

    Yes

    The key for the destination MaxCompute database.

    Destination database Region

    Yes

    The region of the destination MaxCompute database. The system generates an Endpoint based on the MaxCompute region table.

    Destination database Project

    Yes

    The project in the target MaxCompute database.

    Destination database LogStore

    Yes

    The Logstore in the destination MaxCompute database.

    A project can contain multiple Logstores. As needed, create separate Logstores in the destination project for different log types from the same application.

    Data source table

    Yes

    The source data table for the log type you want to export. You can export data from the following log tables:

    • uniform_behavior: Behavior log table

    • uniform_behavior_auto: Automated log table

    • monitor_performance: Performance log table

    • uniform_exception: Exception log table

    • gateway_invoke_detail: Gateway log

    Note

    Only one real-time log export task can be created for each data source.

  4. After you configure the task, click OK. The new task appears in the task list.

View a real-time log export task

To view the details for a task, find the task in the task list and click the View link on the right.

Pause or start a real-time log export task

By default, a new task is active. To pause the log export task, turn off its run switch. To start the task again, turn the switch on.

Delete a real-time log export task

In the task list, find the task, click the Delete link on the right, and then confirm the deletion.