Send log data to your project by using the Telemetry (OTLP) API,
which implements the [OpenTelemetry Protocol](https://opentelemetry.io/docs/specs/otlp).
For information about this API, see
[v1.logs overview](https://docs.cloud.google.com/stackdriver/docs/reference/telemetry/v1.logs.md.txt).

### HTTP request

Choose an endpoint:
global africa-south1 asia-east1 asia-east2 asia-northeast1 asia-northeast2 asia-northeast3 asia-south1 asia-south2 asia-southeast1 asia-southeast2 asia-southeast3 australia-southeast1 australia-southeast2 europe-central2 europe-north1 europe-north2 europe-north3 europe-southwest1 europe-west1 europe-west10 europe-west12 europe-west2 europe-west3 europe-west4 europe-west6 europe-west8 europe-west9 me-central1 me-central2 me-west1 northamerica-northeast1 northamerica-northeast2 northamerica-south1 southamerica-east1 southamerica-west1 us-central1 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4   
`GET https://telemetry.googleapis.com/v1/logs`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

## Request body

The request body contains an instance of `ExportLogsServiceRequest`.
For information about this structure, see
[`logs_service.proto`](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/collector/logs/v1/logs_service.proto)
and [`logs.proto`](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/logs/v1/logs.proto).

For information about sending requests and about the OTLP protocol, see
[Protocol Details](https://opentelemetry.io/docs/specs/otlp/#protocol-details).

## Response body

The response body contains an instance of `ExportLogsServiceResponse`.
For information about this structure, see the
[`logs_service.proto`](https://github.com/open-telemetry/opentelemetry-proto/blob/v1.5.0/opentelemetry/proto/collector/logs/v1/logs_service.proto).

The response can indicate full success, partial success, or failure. For
more information, see [OTLP/gRPC Response](https://opentelemetry.io/docs/specs/otlp/#otlpgrpc-response).

## Authorization scopes

Requires one of the following OAuth scopes:

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

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

## IAM permissions

Requires the following IAM permissions:

- `logging.logEntries.create` on the project.
- `serviceusage.services.use` on the [quota project](https://docs.cloud.google.com/docs/quotas/set-quota-project.md.txt).

For more information, see [Control access with IAM](https://docs.cloud.google.com/stackdriver/docs/observability/access-control.md.txt) and
[Telemetry API roles and permissions](https://docs.cloud.google.com/iam/docs/roles-permissions/telemetry.md.txt).