This topic describes how to collect RDS SQL audit logs by using the Log Service console.

Prerequisites

Procedure

  1. Log on to the Log Service console.
  2. In the Import Data section, select RDS SQL Audit - Cloud Products.
  3. In the Specify Logstore step, select a project and Logstore, and click Next.
  4. In the Specify Data Source step, complete RAM authorization, enable the data shipping feature, and then click Next.
    Note
    • If you have not authorized Log Service to dispatch logs, click Authorize next to RAM, and complete the authorization as prompted.
    • The destination ApsaraDB for RDS instance may not appear on the prompted page or you may fail to enable the data shipping feature. This issue occurs when your ApsaraDB for RDS instance does not meet the required conditions. For more information about how to check whether your ApsaraDB for RDS instance meets the required conditions, see the Prerequisites section.
    Specify Data Source tab
  5. In the Configure Query and Analysis step, click Next.
    The indexing feature is enabled for the Logstore where RDS SQL audit logs reside and indexes are configured for these audit logs. You can modify indexes as required. For more information, see Enable and configure the index feature for a Logstore.

What to do next

After RDS SQL audit logs are collected by using Log Service, you can search, analyze, download, ship, and transform these logs. You can also configure alerts for these logs. For more information, see Common operations on logs of Alibaba Cloud services.