Updated on 2026-05-14 GMT+08:00

Managing Error Logs

Scenarios

RDS log management allows you to view database-level logs, including error logs and slow SQL query logs.

Error logs help you analyze problems with databases. You can download error logs for further analysis.

Viewing and Downloading Error Logs

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, click the target instance name to go to the Summary page.
  4. In the navigation pane, choose Logs.
  5. On the Error Logs tab page, click the Log Details tab. You can view error logs by node, level, and specific time range.

    Figure 1 Error log details
    If Error Log Ingestion to LTS is enabled, you can switch to the analysis view in the upper right corner of the page to see more details. For details about each module in the analysis view, see Viewing Log Management.
    Figure 2 Analysis view for error logs
    Table 1 Error log details

    Parameter

    Description

    Time

    UTC time when a log was generated

    Log Level

    • You can select a log level in the upper right corner to view logs of the selected level.
      • All log levels
      • ERROR
      • WARNING
      • NOTE
    • You can also click in the upper right corner to select a time range and view error logs for different periods.

      Only error logs generated within the last month can be viewed.

    Description

    • A maximum of 2,000 error log records can be displayed. To view more error log records, submit a service ticket.
    • If the description of a log is truncated, locate the log and move your pointer over the description in the Description column to view details.

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, click the target instance name.
  4. In the navigation pane on the left, choose Logs. On the Error Logs page, click the Downloads tab. In the log list, locate a log file whose status is Preparation completed and click Download in the Operation column.

    Figure 3 Downloading an error log
    • The system automatically loads the downloading preparation tasks. The loading duration is determined by the log file size and network environment.
      • When the log is being prepared for download, the log status is Preparing.
      • When the log is ready for download, the log status is Preparation completed.
      • If the preparation for download fails, the log status is Abnormal.

      Logs in the Preparing or Abnormal status cannot be downloaded.

    • The download link is valid for 5 minutes. After the download link expires, a message is displayed indicating that the download link has expired. If you need to redownload the log, click OK.
    • The downloaded logs contain only the logs of the primary node.
    • If the size of a log to be downloaded is greater than 40 MB, you need to use OBS Browser+ to download it.
      1. Download OBS Browser+.
      2. Decompress and install OBS Browser+.
        Figure 4 Logging in to OBS Browser+
      3. On the OBS Browser+ download page of any backup, obtain the name of an external bucket. For details, see Method 1: Using OBS Browser+.
        Figure 5 Obtaining an external bucket name
      4. Add an external bucket.
        Figure 6 Adding an external bucket

        If you want to access OBS external buckets across accounts, the access permission is required. For details, see Granting IAM Users Under an Account the Access to a Bucket and Resources in the Bucket.

      5. Click the name of the external bucket to go to the object list page. In the search box on the right, enter the log file name and start a search. In the search result, click to download the log file.
        Figure 7 Downloading a log file

Error Log Ingestion to LTS

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, click the target instance name to go to the Summary page.
  4. In the navigation pane, choose Logs.
  5. On the Error Logs tab page, click Ingest Logs to LTS in the upper right corner.
  6. In the displayed dialog box, select Error logs under Log Types, select a log group and log stream, and click OK.

    Figure 8 Configuring error log ingestion to LTS