All Products
Search
Document Center

Alibaba Cloud Service Mesh:Use Simple Log Service to collect access logs on the data plane

Last Updated:Mar 11, 2026

Envoy sidecar proxies on the Service Mesh (ASM) data plane generate access logs for every inbound and outbound request. By integrating Container Service for Kubernetes (ACK) with Simple Log Service (SLS), you can collect these logs centrally, run queries, and monitor traffic through built-in dashboards -- replacing manual kubectl logs calls on individual pods.

How it works

  1. The Logtail agent (logtail-ds add-on) runs in the ACK cluster and streams sidecar proxy logs to SLS.

  2. SLS stores logs in a Logstore under a project -- either one you select or one created automatically as k8s-log-{ClusterID}.

  3. Built-in dashboards in the ASM console surface both raw log entries and aggregated traffic metrics.

Prerequisites

Before you begin, make sure that you have:

  • An ASM instance (version 1.17.2.35 or later recommended). For more information, see Create an ASM instance

  • An ACK cluster added to the ASM instance. For more information, see Add a cluster to an ASM instance

  • The logtail-ds add-on (version 0.16.24.0 or later) installed in the ACK cluster

Note

If you have not created an ACK cluster yet, enable SLS during cluster creation. See the Install Logtail when creating a cluster tab in Step 1.

Step 1: Install Logtail

Install Logtail on an existing cluster

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, find the cluster and click its name. In the left-side navigation pane, choose Operations > Add-ons.

  3. On the Add-ons page, search for logtail-ds and click Install on the logtail-ds card.

  4. In the Install logtail-ds dialog box, click OK.

Important

logtail-ds must be version 0.16.24.0 or later. To upgrade, see Manage components.

Install Logtail when creating a cluster

If you do not have an ACK cluster, install Logtail as part of cluster creation.

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click Create Kubernetes Cluster.

  3. In the Component Configurations step, locate the Log Service section and select Enable Log Service.

    • Select Project -- Use an existing SLS project to store logs. Select an existing project

    • Create Project -- The system creates a project named k8s-log-{ClusterID}, where {ClusterID} is the unique ID of the new cluster. Create a new project

  4. Complete the remaining settings and click Create Cluster.

  5. After the cluster is ready, add it to your ASM instance. For more information, see Add a cluster to an ASM instance.

Step 2: Enable log collection

ASM version 1.17.2.35 or later (recommended)

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the target instance. In the left-side navigation pane, choose Observability Management Center > Log Center.

  3. On the Log Center page, choose Data-Plane Logs > Sidecar Proxy Logs or Data-Plane Log Dashboard > Sidecar Proxy Dashboards, set the log storage duration, and click Enable Sidecar Log Collection.

  4. In the Submit dialog box, click OK.

ASM versions earlier than 1.17.2.35

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose ASM Instance > Base Information.

  3. On the Base Information page, click Settings. Select Collect access logs to Alibaba Cloud Log Service and click OK.

Step 3: View and analyze logs

After you enable log collection, Logtail collects Envoy access logs and stores the logs in the specified Logstore. To view the collected logs, perform the following steps:

  1. Log on to the ASM console. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  2. On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose Observability Management Center > Log Center.

  3. On the Log Center page, choose Data-Plane Logs > Sidecar Proxy Logs to view log entries. Choose Data-Plane Log Dashboard > Sidecar Proxy Dashboards to view the built-in dashboards.

The Log Center provides two built-in dashboards for data-plane access logs:

DashboardPathUse case
Mesh Access Log DetailSidecar Proxy Dashboards > Mesh Access Log DetailSearch individual log entries by status code, upstream host, or request ID
Mesh Ingress Log DetailSidecar Proxy Dashboards > Mesh Ingress Log DetailView aggregated metrics: response time distribution, status code breakdown, and traffic volume

Mesh Access Log Detail

Displays individual access log entries in a structured, sortable table.

Mesh Access Log Detail dashboard

Mesh Ingress Log Detail

Shows aggregated traffic metrics across multiple dimensions such as response time, status code distribution, and traffic volume.

Mesh Ingress Log Detail dashboard

Related topics