檢視並列出資料庫日誌檔案 - Amazon Relational Database Service

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

檢視並列出資料庫日誌檔案

您可以使用檢視 Amazon RDS Amazon 資料庫引擎的資料庫日誌檔 AWS Management Console。您可以使用或 Amazon 列出可供下載或監控的 AWS CLI 日誌檔RDSAPI。

注意

如果您無法檢視 Oracle 資料庫執行個體的現有RDS記錄檔清單,請重新啟動執行個體以檢視清單。

檢視資料庫日誌檔案
  1. 在打開 Amazon RDS 控制台https://console.aws.amazon.com/rds/

  2. 在導覽窗格中,選擇 Databases (資料庫)。

  3. 選擇您想檢視的日誌檔案所在的資料庫執行個體的名稱。

  4. 選擇 Logs & events (日誌與事件) 標籤。

  5. 向下捲動至 Logs (日誌) 區段。

  6. (選用) 輸入搜尋詞來篩選結果。

  7. 選擇您想要檢視的日誌,然後選擇 View (檢視)

若要列出資料庫執行個體的可用資料庫記錄檔,請使用 AWS CLI describe-db-log-files指令。

下列範例會回傳名為 my-db-instance 的資料庫執行個體之日誌檔案列表。

範例
aws rds describe-db-log-files --db-instance-identifier my-db-instance

若要列出資料庫執行個體的可用資料庫日誌檔,請使用 Amazon RDS API DescribeDBLogFiles動作。