Method: logs.export

Full name: projects.locations.instances.logTypes.logs.export

Export log telemetry.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{parent}/logs:export

Path parameters

Parameters
parent

string

Required. The parent, which owns this collection of logs. To export from all log types, use - in place of the parent's log type id.

Request body

The request body contains data with the following structure:

JSON representation
{
  "log_entry_time_range": {
    object (Interval)
  },

  // Union field destination can be only one of the following:
  "cloud_storage_destination": {
    object (CloudStorageDestination)
  }
  // End of list of possible types for union field destination.
}
Fields
log_entry_time_range

object (Interval)

Required. The log entry time range of logs to export.

Union field destination.

destination can be only one of the following:

cloud_storage_destination

object (CloudStorageDestination)

A Cloud Storage bucket to export to.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • chronicle.logs.export

For more information, see the IAM documentation.

CloudStorageDestination

Destination message describing a Cloud Storage bucket.

JSON representation
{
  "bucket": string
}
Fields
bucket

string

Required. The Cloud Storage bucket. Format: projects/{project}/buckets/{bucket}