Knowledge Center Monthly Newsletter - March 2025
Stay up to date with the latest from the Knowledge Center. See all new and updated Knowledge Center articles published in the last month and re:Post’s top contributors.
我想稽核執行 Amazon Aurora MySQL 相容版本或 Amazon Aurora PostgreSQL 相容版本 Amazon Aurora Serverless 資料庫叢集的資料庫活動。我想查看和下載日誌。
對於 Aurora MySQL 相容資料庫叢集,您可以開啟慢速查詢日誌、一般日誌或稽核日誌。對於 Aurora PostgreSQL 相容資料庫叢集,您可以使用 log_statement 參數來控制日誌。
若要檢視和下載日誌,您必須使用 Amazon CloudWatch。您無法直接從 Amazon Relational Database Service (Amazon RDS) 主控台查看日誌。沒有直接的資料庫執行個體來存取和託管日誌檔案。Aurora Serverless 連線到可自動擴展的資料庫執行個體 Proxy 機群。
當您啟用 Aurora Serverless v1 上的日誌時,您必須修改資料庫叢集的叢集參數群組。對於 MySQL 資料庫叢集,請使用 Aurora MySQL 5.6 或 5.7 叢集參數群組系列。對於 PostgreSQL 資料庫叢集,請使用 Aurora PostgreSQL 10 叢集參數群組系列。當您啟用 Aurora Serverless v2 上的日誌時,您可以修改自訂資料庫叢集參數或資料庫執行個體參數群組。
若要啟用 Aurora Serverless 上的日誌,請完成以下步驟:
Aurora Serverless 會以自動無縫擴展套用參數變更。
注意: Aurora Serverless V1 在套用變更時,會使用 ForceApplyCapacityChange 逾時動作。如果您的 Aurora Serverless V1 資料庫叢集在逾時之前無法找到擴展點,則您的連線可能會中斷。
啟用日誌後,Aurora Serverless 會自動將日誌上傳到 CloudWatch。
若要查看和下載日誌,請完成以下步驟:
如需詳細資訊,請參閱在 Amazon CloudWatch 中監控日誌事件。
如何為 Aurora MySQL 相容資料庫叢集啟用稽核記錄功能,並將日誌發佈至 CloudWatch?
如何將 Amazon RDS 或 Aurora MySQL 相容執行個體的日誌發佈到 CloudWatch?
將 Amazon Aurora MySQL 日誌發佈至 Amazon CloudWatch Logs
將 Aurora PostgreSQL 日誌發佈到 AAmazon CloudWatch Logs
將資料庫日誌發佈到 Amazon CloudWatch Logs