View and analyze API call logs (public preview)

更新时间:
复制 MD 格式

DataService Studio provides log analysis for reviewing API requests. When a request fails, intelligent analysis helps you quickly identify the root cause and provides a diagnosis with actionable suggestions.

Limits

The intelligent analysis feature is available only in DataWorks Professional Edition or later. You can try this feature for free, but we recommend that you upgrade to the Professional Edition to access more product capabilities. For more information about edition upgrades, see DataWorks editions.

View the log list

  1. Go to the Data Services page.

    Log on to the DataWorks console. In the target region, click Data Analysis and Service > DataService Studio in the left-side navigation pane. Select a workspace from the drop-down list and click Go to DataService Studio.

  2. On the Service Management tab, on the Service Management page, click API Statistics > Log Analysis to open the Log Analysis page.

  3. Search for logs by request ID, Response Duration, or Time range.

    Note

    By default, the 10 most recent logs are displayed if no search criteria are set.

    The top of the log analysis page displays a request lifecycle diagram: clientAPI GatewayDataService Studiodata source, with request and response directions marked between each node. You can filter logs by request ID, search content, response time (≥ a specified millisecond value from 1 to 100,000), and time range. The log list also includes columns such as API ID/Name, App Name, Data Source Name, Request Start Time, HTTP status, and Data Status.

    Parameter

    Description

    Request ID

    A unique identifier for each API call.

    Response Time (ms)

    Hover over the chart to view a tooltip with the response time breakdown.

    Operation

    Opens the Log Analysis panel. For more information, see Intelligent log analysis.

Intelligent log analysis

  1. In the Log Analysis list, find the target log and click Intelligent Analysis in the Actions column. The Log Analysis panel expands at the bottom of the page.

  2. The Log Analysis panel shows the runtime status of the API request.

    • If the request succeeds, each stage of the call completes without errors. You can view the time taken for each stage in the corresponding Gantt chart.

    • If a request fails, this panel helps you identify the failed stage and provides a Diagnose and Suggestions.

    Click a request to expand the trace timeline at the bottom, which shows a time breakdown for each stage (Gateway, DataService Studio, and data source). Click Intelligent Analysis to view the detailed diagnosis.