Updated on 2022-11-14 GMT+08:00

Audit and Logs

Audit

Cloud Trace Service (CTS) records operations on cloud resources in your account. You can use the logs generated by CTS to perform security analysis, track resource changes, audit compliance, and locate faults.

For details about how to enable and configure CTS, see Enabling CTS.

With CTS, you can record operations associated with DDS for future query, audit, and backtracking. For details, see Key Operations Recorded by CTS.

Logs

DDS provides a variety of log types and functions for database analysis or audit. You can view logs on the management console.

  • Error Logs

    DDS allows you to view database-level logs, including error logs and slow SQL query logs. For details, see Error Logs.

  • Slow Query Logs

    Slow query logs record statements that exceed operationProfiling.slowOpThresholdMs (500 ms by default). You can view log details and statistics to identify slow statements, so you can optimize them. For details, see Slow Query Logs.

  • Audit Logs

    An audit log records operations performed on your databases and collections. The generated log files are stored in OBS. Auditing logs can enhance your database security and help you analyze the cause of failed operations. For details, see Audit Logs.