Recommender audit logging

This document describes audit logging for Recommender. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. For more information about Cloud Audit Logs, see the following:

Service name

Recommender audit logs use the service name recommender.googleapis.com. Filter for this service:

    protoPayload.serviceName="recommender.googleapis.com"
  

Methods by permission type

Each IAM permission has a type property, whose value is an enum that can be one of four values: ADMIN_READ, ADMIN_WRITE, DATA_READ, or DATA_WRITE. When you call a method, Recommender generates an audit log whose category is dependent on the type property of the permission required to perform the method. Methods that require an IAM permission with the type property value of DATA_READ, DATA_WRITE, or ADMIN_READ generate Data Access audit logs. Methods that require an IAM permission with the type property value of ADMIN_WRITE generate Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.cloud.recommender.v1.Recommender.GetInsightTypeConfig
google.cloud.recommender.v1.Recommender.GetRecommenderConfig
google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig
google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig
ADMIN_WRITE google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig
google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig
google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig
google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig

API interface audit logs

For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for Recommender.

google.cloud.recommender.v1.Recommender

The following audit logs are associated with methods belonging to google.cloud.recommender.v1.Recommender.

GetInsightTypeConfig

  • Method: google.cloud.recommender.v1.Recommender.GetInsightTypeConfig
  • Audit log type: Data access
  • Permissions:
    • recommender.computeInstanceBestPracticeInsightTypeConfig.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1.Recommender.GetInsightTypeConfig"

GetRecommenderConfig

  • Method: google.cloud.recommender.v1.Recommender.GetRecommenderConfig
  • Audit log type: Data access
  • Permissions:
    • recommender.computeInstanceBestPracticeRecommenderConfig.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1.Recommender.GetRecommenderConfig"

UpdateInsightTypeConfig

  • Method: google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig
  • Audit log type: Admin activity
  • Permissions:
    • recommender.computeInstanceBestPracticeInsightTypeConfig.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig"

UpdateRecommenderConfig

  • Method: google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig
  • Audit log type: Admin activity
  • Permissions:
    • recommender.computeInstanceBestPracticeRecommenderConfig.update - ADMIN_WRITE
    • recommender.computeInstanceIdleResourceRecommenderConfig.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig"

google.cloud.recommender.v1beta1.Recommender

The following audit logs are associated with methods belonging to google.cloud.recommender.v1beta1.Recommender.

GetInsightTypeConfig

  • Method: google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig
  • Audit log type: Data access
  • Permissions:
    • recommender.computeFirewallInsightTypeConfigs.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig"

GetRecommenderConfig

  • Method: google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig
  • Audit log type: Data access
  • Permissions:
    • recommender.iamPolicyRecommenderConfig.get - ADMIN_READ
    • recommender.spendBasedCommitmentRecommenderConfig.get - ADMIN_READ
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig"

UpdateInsightTypeConfig

  • Method: google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig
  • Audit log type: Admin activity
  • Permissions:
    • recommender.computeFirewallInsightTypeConfigs.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig"

UpdateRecommenderConfig

  • Method: google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig
  • Audit log type: Admin activity
  • Permissions:
    • recommender.iamPolicyRecommenderConfig.update - ADMIN_WRITE
    • recommender.spendBasedCommitmentRecommenderConfig.update - ADMIN_WRITE
  • Method is a long-running or streaming operation: No.
  • Filter for this method: protoPayload.methodName="google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig"

Methods that don't produce audit logs

A method might not produce audit logs for one or more of the following reasons:

  • It is a high volume method involving signifcant log generation and storage costs.
  • It has low auditing value.
  • Another audit or platform log already provides method coverage.

The following methods don't produce audit logs:

  • google.cloud.recommender.v1.Recommender.GetInsight
  • google.cloud.recommender.v1.Recommender.GetRecommendation
  • google.cloud.recommender.v1.Recommender.ListInsights
  • google.cloud.recommender.v1.Recommender.ListRecommendations
  • google.cloud.recommender.v1.Recommender.MarkInsightAccepted
  • google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed
  • google.cloud.recommender.v1.Recommender.MarkRecommendationDismissed
  • google.cloud.recommender.v1.Recommender.MarkRecommendationFailed
  • google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded
  • google.cloud.recommender.v1beta1.Recommender.GetInsight
  • google.cloud.recommender.v1beta1.Recommender.GetRecommendation
  • google.cloud.recommender.v1beta1.Recommender.ListInsightTypes
  • google.cloud.recommender.v1beta1.Recommender.ListInsights
  • google.cloud.recommender.v1beta1.Recommender.ListLocations
  • google.cloud.recommender.v1beta1.Recommender.ListRecommendations
  • google.cloud.recommender.v1beta1.Recommender.ListRecommenders
  • google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted
  • google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed
  • google.cloud.recommender.v1beta1.Recommender.MarkRecommendationDismissed
  • google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed
  • google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded