Cloud Logging audit logging

This document describes audit logging for Cloud Logging. Google Cloud services write audit logs that record administrative activities and accesses within your Google Cloud resources. For more information, see Cloud Audit Logs overview.

This page was last generated on 2024-05-22 18:28:03 UTC.

Service name

Cloud Logging audit logs use the service name logging.googleapis.com.

Methods by permission type

Methods that check DATA_READ, DATA_WRITE, and ADMIN_READ permission types are Data Access audit logs. Methods that check ADMIN_WRITE permission types are Admin Activity audit logs.

Permission type Methods
ADMIN_READ google.cloud.location.Locations.GetLocation
google.cloud.location.Locations.ListLocations
google.iam.v1.IAMPolicy.GetIamPolicy
google.logging.v2.ConfigServiceV2.GetBucket
google.logging.v2.ConfigServiceV2.GetCmekSettings
google.logging.v2.ConfigServiceV2.GetExclusion
google.logging.v2.ConfigServiceV2.GetLink
google.logging.v2.ConfigServiceV2.GetSettings
google.logging.v2.ConfigServiceV2.GetSink
google.logging.v2.ConfigServiceV2.GetView
google.logging.v2.ConfigServiceV2.ListBuckets
google.logging.v2.ConfigServiceV2.ListExclusions
google.logging.v2.ConfigServiceV2.ListLinks
google.logging.v2.ConfigServiceV2.ListSinks
google.logging.v2.LoggingServiceV2.ListLogs
google.logging.v2.MetricsServiceV2.GetLogMetric
google.logging.v2.MetricsServiceV2.ListLogMetrics
ADMIN_WRITE google.iam.v1.IAMPolicy.SetIamPolicy
google.logging.v2.ConfigServiceV2.CreateBucket
google.logging.v2.ConfigServiceV2.CreateBucketAsync
google.logging.v2.ConfigServiceV2.CreateExclusion
google.logging.v2.ConfigServiceV2.CreateLink
google.logging.v2.ConfigServiceV2.CreateSink
google.logging.v2.ConfigServiceV2.CreateView
google.logging.v2.ConfigServiceV2.DeleteBucket
google.logging.v2.ConfigServiceV2.DeleteExclusion
google.logging.v2.ConfigServiceV2.DeleteLink
google.logging.v2.ConfigServiceV2.DeleteSink
google.logging.v2.ConfigServiceV2.DeleteView
google.logging.v2.ConfigServiceV2.UndeleteBucket
google.logging.v2.ConfigServiceV2.UpdateBucket
google.logging.v2.ConfigServiceV2.UpdateBucketAsync
google.logging.v2.ConfigServiceV2.UpdateCmekSettings
google.logging.v2.ConfigServiceV2.UpdateExclusion
google.logging.v2.ConfigServiceV2.UpdateSettings
google.logging.v2.ConfigServiceV2.UpdateSink
google.logging.v2.ConfigServiceV2.UpdateView
google.logging.v2.LoggingServiceV2.DeleteLog
google.logging.v2.MetricsServiceV2.CreateLogMetric
google.logging.v2.MetricsServiceV2.DeleteLogMetric
google.logging.v2.MetricsServiceV2.UpdateLogMetric
google.longrunning.Operations.CancelOperation
DATA_READ google.logging.v2.ConfigServiceV2.CopyLogEntries
google.logging.v2.LoggingServiceV2.ListLogEntries

Audit logs per API interface

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

google.cloud.location.Locations

Details about audit logs associated with methods belonging to google.cloud.location.Locations.

google.cloud.location.Locations.GetLocation

  • Method: google.cloud.location.Locations.GetLocation
  • Audit log Type: Data Access
  • Permissions:
    • logging.locations.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.cloud.location.Locations.GetLocation"

google.cloud.location.Locations.ListLocations

  • Method: google.cloud.location.Locations.ListLocations
  • Audit log Type: Data Access
  • Permissions:
    • logging.locations.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.cloud.location.Locations.ListLocations"

google.iam.v1.IAMPolicy

Details about audit logs associated with methods belonging to google.iam.v1.IAMPolicy.

google.iam.v1.IAMPolicy.GetIamPolicy

  • Method: google.iam.v1.IAMPolicy.GetIamPolicy
  • Audit log Type: Data Access
  • Permissions:
    • logging.views.getIamPolicy - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.iam.v1.IAMPolicy.GetIamPolicy"

google.iam.v1.IAMPolicy.SetIamPolicy

  • Method: google.iam.v1.IAMPolicy.SetIamPolicy
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.views.setIamPolicy - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.iam.v1.IAMPolicy.SetIamPolicy"

google.logging.v2.ConfigServiceV2

Details about audit logs associated with methods belonging to google.logging.v2.ConfigServiceV2.

google.logging.v2.ConfigServiceV2.CopyLogEntries

  • Method: google.logging.v2.ConfigServiceV2.CopyLogEntries
  • Audit log Type: Data Access
  • Permissions:
    • logging.buckets.copyLogEntries - DATA_READ
  • Method is a Long Running Operation or Streaming: Long Running Operation
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CopyLogEntries"

google.logging.v2.ConfigServiceV2.CreateBucket

  • Method: google.logging.v2.ConfigServiceV2.CreateBucket
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateBucket"

google.logging.v2.ConfigServiceV2.CreateBucketAsync

  • Method: google.logging.v2.ConfigServiceV2.CreateBucketAsync
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: Long Running Operation
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateBucketAsync"

google.logging.v2.ConfigServiceV2.CreateExclusion

  • Method: google.logging.v2.ConfigServiceV2.CreateExclusion
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.exclusions.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateExclusion"
  • Method: google.logging.v2.ConfigServiceV2.CreateLink
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.links.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: Long Running Operation
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateLink"

google.logging.v2.ConfigServiceV2.CreateSink

  • Method: google.logging.v2.ConfigServiceV2.CreateSink
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.sinks.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateSink"

google.logging.v2.ConfigServiceV2.CreateView

  • Method: google.logging.v2.ConfigServiceV2.CreateView
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.views.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.CreateView"

google.logging.v2.ConfigServiceV2.DeleteBucket

  • Method: google.logging.v2.ConfigServiceV2.DeleteBucket
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.DeleteBucket"

google.logging.v2.ConfigServiceV2.DeleteExclusion

  • Method: google.logging.v2.ConfigServiceV2.DeleteExclusion
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.exclusions.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.DeleteExclusion"
  • Method: google.logging.v2.ConfigServiceV2.DeleteLink
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.links.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: Long Running Operation
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.DeleteLink"

google.logging.v2.ConfigServiceV2.DeleteSink

  • Method: google.logging.v2.ConfigServiceV2.DeleteSink
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.sinks.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.DeleteSink"

google.logging.v2.ConfigServiceV2.DeleteView

  • Method: google.logging.v2.ConfigServiceV2.DeleteView
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.views.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.DeleteView"

google.logging.v2.ConfigServiceV2.GetBucket

  • Method: google.logging.v2.ConfigServiceV2.GetBucket
  • Audit log Type: Data Access
  • Permissions:
    • logging.buckets.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetBucket"

google.logging.v2.ConfigServiceV2.GetCmekSettings

  • Method: google.logging.v2.ConfigServiceV2.GetCmekSettings
  • Audit log Type: Data Access
  • Permissions:
    • logging.settings.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetCmekSettings"

google.logging.v2.ConfigServiceV2.GetExclusion

  • Method: google.logging.v2.ConfigServiceV2.GetExclusion
  • Audit log Type: Data Access
  • Permissions:
    • logging.exclusions.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetExclusion"
  • Method: google.logging.v2.ConfigServiceV2.GetLink
  • Audit log Type: Data Access
  • Permissions:
    • logging.links.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetLink"

google.logging.v2.ConfigServiceV2.GetSettings

  • Method: google.logging.v2.ConfigServiceV2.GetSettings
  • Audit log Type: Data Access
  • Permissions:
    • logging.settings.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetSettings"

google.logging.v2.ConfigServiceV2.GetSink

  • Method: google.logging.v2.ConfigServiceV2.GetSink
  • Audit log Type: Data Access
  • Permissions:
    • logging.sinks.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetSink"

google.logging.v2.ConfigServiceV2.GetView

  • Method: google.logging.v2.ConfigServiceV2.GetView
  • Audit log Type: Data Access
  • Permissions:
    • logging.views.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.GetView"

google.logging.v2.ConfigServiceV2.ListBuckets

  • Method: google.logging.v2.ConfigServiceV2.ListBuckets
  • Audit log Type: Data Access
  • Permissions:
    • logging.buckets.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.ListBuckets"

google.logging.v2.ConfigServiceV2.ListExclusions

  • Method: google.logging.v2.ConfigServiceV2.ListExclusions
  • Audit log Type: Data Access
  • Permissions:
    • logging.exclusions.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.ListExclusions"
  • Method: google.logging.v2.ConfigServiceV2.ListLinks
  • Audit log Type: Data Access
  • Permissions:
    • logging.links.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.ListLinks"

google.logging.v2.ConfigServiceV2.ListSinks

  • Method: google.logging.v2.ConfigServiceV2.ListSinks
  • Audit log Type: Data Access
  • Permissions:
    • logging.sinks.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.ListSinks"

google.logging.v2.ConfigServiceV2.UndeleteBucket

  • Method: google.logging.v2.ConfigServiceV2.UndeleteBucket
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.undelete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UndeleteBucket"

google.logging.v2.ConfigServiceV2.UpdateBucket

  • Method: google.logging.v2.ConfigServiceV2.UpdateBucket
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateBucket"

google.logging.v2.ConfigServiceV2.UpdateBucketAsync

  • Method: google.logging.v2.ConfigServiceV2.UpdateBucketAsync
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.buckets.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: Long Running Operation
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateBucketAsync"

google.logging.v2.ConfigServiceV2.UpdateCmekSettings

  • Method: google.logging.v2.ConfigServiceV2.UpdateCmekSettings
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.settings.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateCmekSettings"

google.logging.v2.ConfigServiceV2.UpdateExclusion

  • Method: google.logging.v2.ConfigServiceV2.UpdateExclusion
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.exclusions.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateExclusion"

google.logging.v2.ConfigServiceV2.UpdateSettings

  • Method: google.logging.v2.ConfigServiceV2.UpdateSettings
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.settings.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateSettings"

google.logging.v2.ConfigServiceV2.UpdateSink

  • Method: google.logging.v2.ConfigServiceV2.UpdateSink
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.sinks.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateSink"

google.logging.v2.ConfigServiceV2.UpdateView

  • Method: google.logging.v2.ConfigServiceV2.UpdateView
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.views.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.ConfigServiceV2.UpdateView"

google.logging.v2.LoggingServiceV2

Details about audit logs associated with methods belonging to google.logging.v2.LoggingServiceV2.

google.logging.v2.LoggingServiceV2.DeleteLog

  • Method: google.logging.v2.LoggingServiceV2.DeleteLog
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.logs.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.LoggingServiceV2.DeleteLog"

google.logging.v2.LoggingServiceV2.ListLogEntries

  • Method: google.logging.v2.LoggingServiceV2.ListLogEntries
  • Audit log Type: Data Access
  • Permissions:
    • logging.fields.access - DATA_READ
    • logging.logEntries.list - DATA_READ
    • logging.privateLogEntries.list - DATA_READ
    • logging.views.access - DATA_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.LoggingServiceV2.ListLogEntries"

google.logging.v2.LoggingServiceV2.ListLogs

  • Method: google.logging.v2.LoggingServiceV2.ListLogs
  • Audit log Type: Data Access
  • Permissions:
    • logging.logs.list - ADMIN_READ
    • logging.views.listLogs - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.LoggingServiceV2.ListLogs"

google.logging.v2.MetricsServiceV2

Details about audit logs associated with methods belonging to google.logging.v2.MetricsServiceV2.

google.logging.v2.MetricsServiceV2.CreateLogMetric

  • Method: google.logging.v2.MetricsServiceV2.CreateLogMetric
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.logMetrics.create - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.MetricsServiceV2.CreateLogMetric"

google.logging.v2.MetricsServiceV2.DeleteLogMetric

  • Method: google.logging.v2.MetricsServiceV2.DeleteLogMetric
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.logMetrics.delete - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.MetricsServiceV2.DeleteLogMetric"

google.logging.v2.MetricsServiceV2.GetLogMetric

  • Method: google.logging.v2.MetricsServiceV2.GetLogMetric
  • Audit log Type: Data Access
  • Permissions:
    • logging.logMetrics.get - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.MetricsServiceV2.GetLogMetric"

google.logging.v2.MetricsServiceV2.ListLogMetrics

  • Method: google.logging.v2.MetricsServiceV2.ListLogMetrics
  • Audit log Type: Data Access
  • Permissions:
    • logging.logMetrics.list - ADMIN_READ
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.MetricsServiceV2.ListLogMetrics"

google.logging.v2.MetricsServiceV2.UpdateLogMetric

  • Method: google.logging.v2.MetricsServiceV2.UpdateLogMetric
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.logMetrics.update - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.logging.v2.MetricsServiceV2.UpdateLogMetric"

google.longrunning.Operations

Details about audit logs associated with methods belonging to google.longrunning.Operations.

google.longrunning.Operations.CancelOperation

  • Method: google.longrunning.Operations.CancelOperation
  • Audit log Type: Admin Activity
  • Permissions:
    • logging.operations.cancel - ADMIN_WRITE
  • Method is a Long Running Operation or Streaming: No.
  • Filter for this method: protoPayload.methodName="google.longrunning.Operations.CancelOperation"

Methods that don't produce audit logs

Generally methods don't produce audit logs because they are high volume and doing so would be very expensive, or because the method has low auditing value, or because another audit or platform log already provides coverage for what the method does.

The following methods don't produce audit logs:

  • google.logging.v1.LoggingService.WriteLogEntries
  • google.logging.v2.ConfigServiceV2.CreateSavedQuery
  • google.logging.v2.ConfigServiceV2.DeleteSavedQuery
  • google.logging.v2.ConfigServiceV2.ListRecentQueries
  • google.logging.v2.ConfigServiceV2.ListSavedQueries
  • google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors
  • google.logging.v2.LoggingServiceV2.WriteLogEntries