使用 Amazon CloudWatch Logs 監控 Aurora PostgreSQL Limitless Database - Amazon Aurora

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 Amazon CloudWatch Logs 監控 Aurora PostgreSQL Limitless Database

在啟用 Aurora PostgreSQL Limitless Database 時,需要將 PostgreSQL 日誌匯出至 CloudWatch Logs。您可以在 CloudWatch Logs Insights 中存取和分析這些日誌,類似於存取標準 Aurora PostgreSQL 資料庫叢集的 PostgreSQL 日誌。如需更多詳細資訊,請參閱 使用 CloudWatch Logs Insights 分析 PostgreSQL 日誌

資料庫叢集的日誌群組名稱與 Aurora PostgreSQL 中的名稱相同:

/aws/rds/cluster/DB_cluster_ID/postgresql

資料庫碎片群組的日誌群組名稱採用下列形式:

/aws/rds/cluster/DB_cluster_ID/DB_shard_group_ID/postgresql

每個節點 (路由器或碎片) 都有日誌串流。其名稱格式如下:

[DistributedTransactionRouter|DataAccessShard]/node_cluster_serial_ID-node_instance_serial_ID/n

例如:

  • 路由器:DistributedTransactionRouter/6-6.2

  • 碎片:DataAccessShard/22-22.0

注意

您無法如在資料庫叢集所做一樣,直接在 RDS 主控台、AWS CLI 或 RDS API 中檢視資料庫碎片群組的 PostgreSQL 日誌檔案。您必須使用 CloudWatch Logs Insights 來檢視這些檔案。