Cloud Logging 欄位定義
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
啟用 Cloud 稽核記錄後, Google Cloud 控制台記錄探索工具會記錄下列類別的內容:
啟用及查看
透過 Cloud 稽核記錄,您可以查看 Google Cloud 資源中的管理活動和權限。
啟用記錄功能
請按照下列步驟啟用記錄。
- 前往 Google Cloud 控制台,依序選取「IAM 與管理」>「稽核記錄」。
- 輸入「資料存取稽核記錄設定」的
Dialogflow API
篩選器,然後選取下列 API 類型:「管理員讀取」、「資料讀取」和「資料寫入」。
查看記錄
您必須取得專案擁有者和私密記錄檢視者 IAM 角色,然後按照下列步驟查看記錄。
- 前往 Google Cloud 控制台,然後依序選取「Logging」 >「Logs Explorer」。
- 選用:在 Logs Explorer 中,新增篩選器或調整時間軸。
- 選取項目即可查看詳細資料。
記錄 Proto
每筆記錄項目都是 AuditLog proto
的執行個體,包含下列欄位:
欄位類型 |
欄位名稱 |
字串 |
service_name |
字串 |
method_name |
字串 |
資源名稱 |
ResourceLocation |
resource_location
- current_locations
- original_locations
|
google.protobuf.Struct |
resource_original_state |
int64 |
num_response_items |
google.rpc.Status |
狀態 |
AuthenticationInfo |
authentication_info
- principal_email
- 主體
- authority_selector
- third_party_principal
- service_account_key_name
- service_account_delegation_info
- service_account_delegation_session_id
- principal_subject
- service_delegation_history
|
重複的 AuthorizationInfo |
authorization_info
- authorization_logging_options
- resource_attributes
- admin_access_control_authorization_info
- permission_type
- ADMIN_READ
- ADMIN_WRITE
- DATA_READ
- DATA_WRITE
- impersonation_peer_borg_role
|
PolicyViolationInfo |
policy_violation_info |
repeated PolicyViolationInfo |
policy_violations |
RequestMetadata |
request_metadata
- caller_ip
- caller_supplied_user_agent
- caller_network
- caller_location
- caller_region_code
- caller_internal_gce_vnid
- caller_gce_network_project_number
- caller_is_gce_client
- request_attributes
- destination_attributes
|
google.protobuf.Struct |
要求 |
google.protobuf.Struct |
回應 |
google.protobuf.Struct |
中繼資料 |
位元組 |
audit_loggable_mint |
位元組 |
loggable_ubermint |
位元組 |
audit_loggable_service_control_token |
遮蓋 |
塗銷
- type
- 已清除
- 已更換
- FAILED_TO_PROVIDE
- NOT_REQUIRED
- PARTIAL
- 欄位
- 原因
|
視已啟用的 Cloud 稽核記錄欄位而定,記錄檔探索工具會將 API 的要求和回應主體填入記錄檔 Proto 的要求和回應欄位。
API 層級記錄的欄位
API |
記錄的欄位 |
AnalyzeContent |
要求
|
StreamingAnalyzeContent |
要求
|
回應
|
CreateConversation |
要求
|
回應
- conversation_profile
- lifecycle_state
- 名稱
- start_time
|
CreateParticipant |
要求
|
回覆
|
SuggestConversationSummary |
要求
|
回覆
- latest_message
- answer_record
|
SearchKnowledge |
要求
- parent
- conversation_profile
- 對話
- latest_message
|
回覆
|
SuggestKnowledgeAssist |
要求
|
回覆
- latest_message
- answer_record
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-10-19 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-10-19 (世界標準時間)。"],[],[]]