Updated on 2024-08-30 GMT+08:00

Viewing API Access Logs

Scenario

You can query logs of DataArts DataService APIs, including the request path, request parameters, and response.

Currently, logs are only supported for APIs in DataArts DataService Exclusive.

Configuring LTS

To view logs of DataArts DataService APIs, you need to first configure LTS. For details about how to configure LTS, see Log Tank Service User Guide.

  1. Create a log group on the LTS console.

    1. Log in to the management console.
    2. Click in the upper left corner and select a region and project.
    3. Click Service List and click Log Tank Service under Management & Governance.
      Figure 1 Accessing the LTS console

    4. In the navigation pane on the left, choose Log Management.
    5. Click Create Log Group. In the displayed dialog box, enter a log group name.
    6. Click OK.

  2. Create a log stream.

    1. Click the name of the created log group.
    2. Click Create Log Stream. In the displayed dialog box, enter a log stream name.
    3. Click OK.

Enabling Dump of DataArts DataService Logs

Log in to the DataArts DataService Exclusive console, enter the Basic Details page of a cluster, enable Dump Log, and select LTS.
Figure 2 Enabling dump of logs to LTS

Viewing Access Logs

After configuring log dump, you can view details about access logs.

On the LTS console, click the name of the corresponding log stream. On the Raw Logs page, you can view access logs.

The following figure shows the log format, which cannot be changed.
Figure 3 Log format