All Products
Search
Document Center

Alibaba Cloud Service Mesh:Generate and collect ASM gateway access logs

Last Updated:Jun 20, 2026

Configuring an ASM gateway's access logs is a two-step process: generation and collection. Generation is when the gateway prints logs to standard output, and you can customize the fields included in these logs. Collection sends the logs to Simple Log Service (SLS) for storage, analysis, and visualization. You can configure and enable generation and collection independently. This document describes how to generate, collect, and view ASM gateway access logs.

Prerequisites

Step 1: Generate access logs

For more information, see Customize data plane access logs.

Step 2: Collect and view access logs

  1. Collect access logs. For more information, see Use Log Service to collect access logs of data plane clusters.

  2. View the access logs.

  3. ASM instances earlier than v1.17.2.35

    For more information, see Use Log Service to collect access logs of data plane clusters.

    ASM instances v1.17.2.35 and later

    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 ASM instance. In the left-side navigation pane, choose ASM Gateways > Ingress Gateway or ASM Gateways > Egress Gateway.

    3. In the Observability section to the right of the target gateway, click Log Center or Log Dashboard.

      • Gateway Logs: Displays only logs from the current gateway.

        On the Gateway Logs page in SLS, the project name is mesh-ingress-log. In the search box, enter a query, for example, _pod_name_=istio-ingressgateway2-*, and click Query/Analyze to view the log records and detailed field information for the gateway, such as _container_ip_, _container_name_, and __tag__:_node_ip_.

      • Log Dashboard: Displays only the log analysis results for the current gateway. On the Log Dashboard page, select the Gateway Global Overview tab to go to the Mesh Ingress Overview dashboard. The top of the page has filters such as deployment_regex, Host, Service, URL, and Status. The left side of the page shows metric cards, including PV/UV, request success rate, 5XX error rate, average latency, and P9999/P99/P95 latency. The right side shows operational insights, such as user request PV/UV, request distribution by region, ingress and egress traffic and average latency, number of microservices and backend response latency, top provinces by requests, mobile traffic percentage, and 404 and 5XX error rates.