[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-21。"],[],[],null,["# Connect Gateway audit logging\n\nThis document describes audit logging for Connect Gateway. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](/logging/docs/audit#types)\n- [Audit log entry structure](/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n------------\n\nConnect Gateway audit logs use the service name `connectgateway.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"connectgateway.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n--------------------------\n\n| Connect Gateway audit logs are enabled by turning on audit logging for `gkehub.googleapis.com`.\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nConnect Gateway generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](/logging/docs/audit#admin-activity) audit logs.\n\nAPI interface audit logs\n------------------------\n\nFor information about how and which permissions are evaluated for each method,\nsee the Identity and Access Management documentation for Connect Gateway.\n\n### `google.cloud.gkeconnect.gateway.v1.GatewayControl`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.gkeconnect.gateway.v1.GatewayControl`.\n\n#### `GenerateCredentials`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayControl.GenerateCredentials` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `gkehub.gateway.generateCredentials - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayControl.GenerateCredentials\"\n ` \n\n### `google.cloud.gkeconnect.gateway.v1.GatewayService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.gkeconnect.gateway.v1.GatewayService`.\n\n#### `DeleteResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.DeleteResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.DeleteResource\"\n ` \n\n#### `GetResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.GetResource` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `gkehub.gateway.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : [**Streaming RPC**](/logging/docs/audit/understanding-audit-logs#streaming) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.GetResource\"\n ` \n\n#### `PatchResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.PatchResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.patch - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.PatchResource\"\n ` \n\n#### `PostResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.PostResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.post - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.PostResource\"\n ` \n\n#### `PutResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.PutResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.put - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.PutResource\"\n ` \n\n#### `Stream`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1.GatewayService.Stream` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.stream - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : [**Streaming RPC**](/logging/docs/audit/understanding-audit-logs#streaming) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1.GatewayService.Stream\"\n ` \n\n### `google.cloud.gkeconnect.gateway.v1beta1.GatewayControl`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.gkeconnect.gateway.v1beta1.GatewayControl`.\n\n#### `GenerateCredentials`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayControl.GenerateCredentials` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `gkehub.gateway.generateCredentials - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayControl.GenerateCredentials\"\n ` \n\n### `google.cloud.gkeconnect.gateway.v1beta1.GatewayService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.gkeconnect.gateway.v1beta1.GatewayService`.\n\n#### `DeleteResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.DeleteResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.DeleteResource\"\n ` \n\n#### `GetResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.GetResource` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `gkehub.gateway.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : [**Streaming RPC**](/logging/docs/audit/understanding-audit-logs#streaming) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.GetResource\"\n ` \n\n#### `PatchResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PatchResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.patch - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PatchResource\"\n ` \n\n#### `PostResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PostResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.post - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PostResource\"\n ` \n\n#### `PutResource`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PutResource` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.put - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.PutResource\"\n ` \n\n#### `Stream`\n\n- **Method** : `google.cloud.gkeconnect.gateway.v1beta1.GatewayService.Stream` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `gkehub.gateway.stream - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : [**Streaming RPC**](/logging/docs/audit/understanding-audit-logs#streaming) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.gkeconnect.gateway.v1beta1.GatewayService.Stream\"\n ` \n\nKubernetes audit logging\n------------------------\n\nIn addition to Cloud Audit Logs, [Kubernetes audit logging](https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/) provides\na way for administrators to retain, query, process, and alert on events that\noccur in registered clusters. Administrators can use the logged information to\ndo forensic analysis and real-time alerting, or for cataloging how a fleet of\nclusters are being used and by whom.\n\nThe Connect Agent talks to the local API server running in the registered\ncluster, and each cluster will have its own set of Kubernetes audit logs. All\nactions that users perform from the UI through Connect are logged\nby that cluster."]]