Cloud Audit Logs for Video Intelligence API let you track administrative and
data-access operations on your resources to help you monitor access and
configuration changes. You can query these logs in the Logs Explorer and
check which Video Intelligence API API methods generate Cloud Audit Logs.

For more information about Cloud Audit Logs,
see the following documents:

- [Types of audit logs](https://docs.cloud.google.com/logging/docs/audit.md.txt#types)
- [Audit log entry structure](https://docs.cloud.google.com/logging/docs/audit.md.txt#audit_log_entry_structure)
- [Storing and routing audit logs](https://docs.cloud.google.com/logging/docs/audit.md.txt#storing_and_routing_audit_logs)
- [Cloud Logging pricing summary](https://docs.cloud.google.com/stackdriver/pricing#logs-pricing-summary)
- [Enable Data Access audit logs](https://docs.cloud.google.com/logging/docs/audit/configure-data-access.md.txt)

<br />

## Service name

To view the Video Intelligence API audit logs, do the following:

1. In the Google Cloud console, go to the Logs Explorer page:

   [Go to Logs Explorer](https://console.cloud.google.com/logs/query)
2. Copy and paste the following query into the **Query** field of the
   Logs Explorer, and then click **Run query**.

   ```
       protoPayload.serviceName="videointelligence.googleapis.com"
     
   ```

## Audit logs for each API interface

### `google.cloud.videointelligence.v1.VideoIntelligenceService`

The following audit logs are associated with methods belonging to
`google.cloud.videointelligence.v1.VideoIntelligenceService`.

#### `AnnotateVideo`

- **Method** : `google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : [**Long-running operation**](https://docs.cloud.google.com/logging/docs/audit/understanding-audit-logs.md.txt#lro)   
- **Filter for this method** : `
  protoPayload.methodName="google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo"
  `  

### `google.cloud.videointelligence.v1beta2.VideoIntelligenceService`

The following audit logs are associated with methods belonging to
`google.cloud.videointelligence.v1beta2.VideoIntelligenceService`.

#### `AnnotateVideo`

- **Method** : `google.cloud.videointelligence.v1beta2.AnnotateVideo`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : [**Long-running operation**](https://docs.cloud.google.com/logging/docs/audit/understanding-audit-logs.md.txt#lro)   
- **Filter for this method** : `
  protoPayload.methodName="google.cloud.videointelligence.v1beta2.AnnotateVideo"
  `  

### `google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService`

The following audit logs are associated with methods belonging to
`google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService`.

#### `AnnotateVideo`

- **Method** : `google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : [**Long-running operation**](https://docs.cloud.google.com/logging/docs/audit/understanding-audit-logs.md.txt#lro)   
- **Filter for this method** : `
  protoPayload.methodName="google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo"
  `  

### `google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService`

The following audit logs are associated with methods belonging to
`google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService`.

#### `AnnotateVideo`

- **Method** : `google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : [**Long-running operation**](https://docs.cloud.google.com/logging/docs/audit/understanding-audit-logs.md.txt#lro)   
- **Filter for this method** : `
  protoPayload.methodName="google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo"
  `  

### `google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService`

The following audit logs are associated with methods belonging to
`google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService`.

#### `AnnotateVideo`

- **Method** : `google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService.AnnotateVideo`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : [**Long-running operation**](https://docs.cloud.google.com/logging/docs/audit/understanding-audit-logs.md.txt#lro)   
- **Filter for this method** : `
  protoPayload.methodName="google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService.AnnotateVideo"
  `  

### `google.longrunning.Operations`

The following audit logs are associated with methods belonging to
`google.longrunning.Operations`.

#### `CancelOperation`

- **Method** : `google.longrunning.Operations.CancelOperation`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : No.  
- **Filter for this method** : `
  protoPayload.methodName="google.longrunning.Operations.CancelOperation"
  `  

#### `DeleteOperation`

- **Method** : `google.longrunning.Operations.DeleteOperation`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : No.  
- **Filter for this method** : `
  protoPayload.methodName="google.longrunning.Operations.DeleteOperation"
  `  

#### `GetOperation`

- **Method** : `google.longrunning.Operations.GetOperation`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : No.  
- **Filter for this method** : `
  protoPayload.methodName="google.longrunning.Operations.GetOperation"
  `  

#### `ListOperations`

- **Method** : `google.longrunning.Operations.ListOperations`  
- **Audit log type** : [Data access](https://docs.cloud.google.com/logging/docs/audit.md.txt#data-access)  
- **Permissions**:
- **Method is a long-running or streaming operation** : No.  
- **Filter for this method** : `
  protoPayload.methodName="google.longrunning.Operations.ListOperations"
  `  

## 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 significant log generation and storage costs.
- It has low auditing value.
- Another audit or platform log already provides method coverage.

<br />

The following methods don't produce audit logs:

- `google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService.StreamingAnnotateVideo`
- `google.longrunning.Operations.WaitOperation`