- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.ExportWebhookLogsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.webhooks/exportLogs#body.aspect_1)

**Full name**: projects.locations.instances.webhooks.exportLogs

Exports the processing logs for a webhook. This method generates a file containing the historical activity and error logs, which can be downloaded for offline analysis.

### HTTP request

`POST https://{endpoint}/v1alpha/{name}:exportLogs`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The resource name of the Webhook to export logs for. Format: projects/{project}/locations/{location}/instances/{instance}/webhooks/{webhook}:exportLogs |

### Request body

The request body must be empty.

### Response body

Response message for webhooks.exportLogs.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "file": string, "blob": string } ``` |

| Fields ||
|---|---|
| `file` | `string` Required. The name of the exported file |
| `blob` | `string (https://developers.google.com/discovery/v1/type-format format)` Required. The binary contents of the exported file. A base64-encoded string. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `
  https://www.googleapis.com/auth/chronicle`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `chronicle.webhooks.get`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).