All Products
Search
Document Center

Simple Log Service:CloudLens for PolarDB

Last Updated:Jun 16, 2026

CloudLens for PolarDB centralizes the management of PolarDB for MySQL clusters and collects slow query logs, error logs, audit logs, and performance metrics through Simple Log Service.

Features

CloudLens for PolarDB provides the following features:

  • Centralized management of all PolarDB for MySQL clusters under your Alibaba Cloud account.

  • One-click collection of slow query logs, error logs, audit logs, and performance metrics for PolarDB for MySQL clusters, and centralized management of the data collection status.

  • Real-time storage, query, and analysis of slow query logs, error logs, audit logs, and performance metrics from PolarDB for MySQL clusters.

  • A wide range of visual reports.

Assets

  • LogStore

    After you enable data collection, Simple Log Service creates a project named aliyun-product-data-Alibaba Cloud account ID-region ID in the same region as the PolarDB for MySQL cluster. Simple Log Service also creates Logstores named polardb_audit_log and polardb_log.

    • The polardb_audit_log LogStore stores audit logs from PolarDB for MySQL clusters.

      Audit logs support operational reviews and security compliance.

      • Help security auditors identify who modified data and when, which helps detect internal threats such as permission abuse or the execution of non-compliant commands.

      • Help business systems meet the audit requirements of various security standards.

    • The polardb_log LogStore stores slow query logs and error logs from PolarDB for MySQL clusters.

      • Slow query logs record requests whose running time exceeds a specified threshold, helping you identify performance issues and optimize queries.

      • Error logs record database execution errors, helping you diagnose issues.

  • Metricstore

    When you enable performance metric collection for the first time, you must select a destination region. Simple Log Service then creates a project named aliyun-product-data-Alibaba Cloud account ID-region ID and a Metricstore named polardb_metric in the selected region.

    Note

    Performance metrics are stored centrally. You select a destination region only when you first enable performance metric collection. Metrics from other PolarDB for MySQL clusters are also collected to the same destination, such as aliyun-product-data-16****50-cn-hangzhou/polardb_metric.

    • The polardb_metric Metricstore stores performance metrics from PolarDB for MySQL clusters.

      ApsaraDB for PolarDB provides a wide range of performance monitoring items for tracking the running status of PolarDB for MySQL clusters.

Billing

  • ApsaraDB for PolarDB

    When you enable audit log collection for a PolarDB for MySQL cluster, the SQL Explorer feature is enabled automatically. SQL Explorer is billed based on the storage volume of audit logs. For more information, see Billing overview.

  • Simple Log Service

    When you use Simple Log Service to collect PolarDB logs, you are charged for data transformation, data shipping, and outbound traffic from public endpoints. For more information, see Pay-as-you-go.

Limits

  • You can collect logs and performance metrics only from PolarDB for MySQL clusters.

  • Audit log collection depends on the SQL Explorer feature of ApsaraDB for PolarDB.

    If SQL Explorer is not enabled, CloudLens for PolarDB enables it automatically.

    If you stop automatic collection of PolarDB audit logs and want to disable SQL Explorer, you can disable it in the PolarDB console. For more information, see Disable SQL Explorer and auditing.

  • CloudLens for PolarDB is available in the following regions.

    Cloud type

    Region

    Public cloud

    China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Chengdu), China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Japan (Tokyo), US (Silicon Valley), US (Virginia), Germany (Frankfurt), UK (London)

Notes

Warning

The CloudLens feature requires at least one project to exist under your Alibaba Cloud account.

When you enable and use CloudLens, Simple Log Service checks whether a project exists under your account using the following logic.

Detection logic

  1. When you enable the CloudLens feature for the first time, Simple Log Service checks whether a project exists under your Alibaba Cloud account. If no project exists, a project named aliyun-product-data-Alibaba Cloud account ID-cn-heyuan is created in the China (Heyuan) region.

  2. After you enable CloudLens and navigate to the CloudLens page, Simple Log Service only checks whether a project exists under your Alibaba Cloud account. It does not automatically create a project in the China (Heyuan) region. To create a project manually, see Manage projects.

Delete a project

  • To delete the aliyun-product-data-Alibaba Cloud account ID-cn-heyuan project, open Cloud Shell and run the following command. Replace Alibaba Cloud account ID with your actual account ID.

    aliyunlog log delete_project --project_name=aliyun-product-data-Alibaba Cloud account ID-cn-heyuan --region-endpoint=cn-heyuan.log.aliyuncs.com
  • To delete other projects and Logstores, see Manage Logstores and Manage projects.