View error logs and slow query logs for an ApsaraDB RDS for MariaDB instance from the ApsaraDB for RDS console.
Note
To manage binary logs, see Back up an ApsaraDB RDS for MariaDB instance and Download the log backup files of an ApsaraDB RDS for MariaDB instance.
Log types
The Logs page in the console provides three tabs:
| Tab | Description |
|---|---|
| Error Log | Records database running errors that occurred within the last month. |
| Slow Query Log | Records SQL statements that each took more than 1 second to run within the last month. Duplicate SQL statements are removed. To change the 1-second threshold, reconfigure the long_query_time parameter. |
| Slow Query Log Summary | Provides statistics and analysis reports on SQL statements that each took more than 1 second to run within the last month. To change the 1-second threshold, reconfigure the long_query_time parameter. |
To reconfigure long_query_time, see Reconfigure parameters for an RDS MariaDB instance.
View logs
-
Log on to the ApsaraDB for RDS console.
-
In the upper-left corner, select the region where the instance resides.
-
Find the instance and click its ID.
-
In the left-side navigation pane, click Logs.
-
On the Logs page, click Error Log, Slow Query Log, or Slow Query Log Summary, select a time range, and click Search.