All Products
Search
Document Center

Alibaba Cloud Service Mesh:Configure the features of generating and collecting the access logs of an ASM gateway

Last Updated:Aug 22, 2023

You can separately configure the features of generating and collecting the access logs of a Service Mesh (ASM) gateway based on your business requirements. If you enable the feature of generating the access logs of an ASM gateway, the gateway prints the access logs to the standard output. You can customize the fields that are printed in the access logs. If you enable the feature of collecting the access logs of an ASM gateway, the logs printed by the gateway are collected to Simple Log Service of Alibaba Cloud, which allows you to store and analyze logs and visualize the query and analysis results on charts. This topic describes how to configure the features of generating and collecting the access logs of an ASM gateway and view the access logs.

Prerequisites

Step 1: Enable the feature of generating access logs

For more information, see Customize access logs of clusters on the data plane.

Step 2: Enable the feature of collecting access logs and view the access logs

  1. Enable the feature of collecting access logs. For more information, see Use Log Service to collect access logs on the data plane.

  2. View access logs.

  3. ASM instances of versions earlier than 1.17.2.35

    For more information, see Use Log Service to collect access logs on the data plane.

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

    3. In the Observability section of the desired gateway, click Log Center or Log Dashboard.

      • Gateway Logs: displays only the logs of the current gateway.

        日志中心.png
      • Log Dashboards: displays only the log analysis results of the current gateway.日志仪表盘.png