使用 Amazon CloudWatch Logs 監控 Aurora PostgreSQL 無限資料庫 - Amazon Aurora

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

使用 Amazon CloudWatch Logs 監控 Aurora PostgreSQL 無限資料庫

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

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

/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主控台中檢視資料庫碎片群組的 PostgreSQL 日誌檔案 AWS CLI,或RDSAPI盡可能檢視資料庫叢集的 Postgre 日誌檔案。您必須使用 CloudWatch Logs Insights 來檢視它們。