Viewing and listing database log files - Amazon Aurora
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Viewing and listing database log files

You can view database log files for your Amazon Aurora DB engine by using the Amazon Web Services Management Console. You can list what log files are available for download or monitoring by using the Amazon CLI or Amazon RDS API.

Note

You can't view the log files for Aurora Serverless v1 DB clusters in the RDS console. However, you can view them in the Amazon CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

To view a database log file
  1. Open the Amazon RDS console at https://console.amazonaws.cn/rds/.

  2. In the navigation pane, choose Databases.

  3. Choose the name of the DB instance that has the log file that you want to view.

  4. Choose the Logs & events tab.

  5. Scroll down to the Logs section.

  6. (Optional) Enter a search term to filter your results.

    The following example lists logs filtered by the text error.

    
							List DB logs
  7. Choose the log that you want to view, and then choose View.

To list the available database log files for a DB instance, use the Amazon CLI describe-db-log-files command.

The following example returns a list of log files for a DB instance named my-db-instance.

Example
aws rds describe-db-log-files --db-instance-identifier my-db-instance

To list the available database log files for a DB instance, use the Amazon RDS API DescribeDBLogFiles action.