> ## Documentation Index
> Fetch the complete documentation index at: https://otel.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Alibabacloudlogservice

> OpenTelemetry exporter for Alibabacloudlogservice

# Alibabacloudlogservice Exporter

![Status](https://img.shields.io/badge/status-beta-yellow)

**Available in:** `contrib`

**Maintainers:** [@vyagh](https://github.com/vyagh)

**Source:** [opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/alibabacloudlogserviceexporter)

## Supported Telemetry

![Logs](https://img.shields.io/badge/logs-beta-blue) ![Metrics](https://img.shields.io/badge/metrics-beta-green) ![Traces](https://img.shields.io/badge/traces-beta-orange)

## Overview

This exporter supports sending OpenTelemetry data to [LogService](https://www.alibabacloud.com/product/log-service).

* `endpoint` (required): LogService's [Endpoint](https://www.alibabacloud.com/help/doc-detail/29008.htm).
* `project` (required): LogService's Project Name.
* `logstore` (required): LogService's store Name. For metrics data, you should use metric store.
* `access_key_id` (optional): AlibabaCloud access key id.
* `access_key_secret` (optional): AlibabaCloud access key secret.
* `security_token` (optional): AlibabaCloud security token for STS credentials.
* `ecs_ram_role` (optional): set AlibabaCLoud ECS ram role if you are using ACK.
* `token_file_path` (optional): Set token file path if you are using ACK.

# Example:

## Simple Trace Data

```yaml theme={null}
receivers:
  examplereceiver:

exporters:
  alibabacloud_logservice:
    endpoint: "cn-hangzhou.log.aliyuncs.com"
    project: "demo-project"
    logstore: "traces-store"
    access_key_id: "access-key-id"
    access_key_secret: "access-key-secret"

service:
  pipelines:
    traces:
      receivers: [examplereceiver]
      exporters: [alibabacloud_logservice]
```

## All Telemetry Data

If you are using OpenTelemetry Collector to collect different types of telemetry data, you should send to different LogService's store.

```yaml theme={null}
receivers:
  examplereceiver:

exporters:
  alibabacloud_logservice/logs:
    endpoint: "cn-hangzhou.log.aliyuncs.com"
    project: "demo-project"
    logstore: "logs-store"
    access_key_id: "access-key-id"
    access_key_secret: "access-key-secret"
  alibabacloud_logservice/metrics:
    endpoint: "cn-hangzhou.log.aliyuncs.com"
    project: "demo-project"
    logstore: "metrics-store"
    access_key_id: "access-key-id"
    access_key_secret: "access-key-secret"
  alibabacloud_logservice/traces:
    endpoint: "cn-hangzhou.log.aliyuncs.com"
    project: "demo-project"
    logstore: "traces-store"
    access_key_id: "access-key-id"
    access_key_secret: "access-key-secret"

service:
  pipelines:
    traces:
      receivers: [examplereceiver]
      exporters: [alibabacloud_logservice/traces]
    logs:
      receivers: [examplereceiver]
      exporters: [alibabacloud_logservice/logs]
    metrics:
      receivers: [examplereceiver]
      exporters: [alibabacloud_logservice/metrics]
```

## Configuration

### Example Configuration

```yaml theme={null}
alibabacloud_logservice:
  endpoint: "cn-hangzhou.log.aliyuncs.com"
alibabacloud_logservice/2:
  endpoint: "cn-hangzhou.log.aliyuncs.com"
  project: "demo-project"
  logstore: "demo-logstore"
  access_key_id: "test-id"
  access_key_secret: "test-secret"
  security_token: "test-token"
```

***

*Last generated: 2026-07-06*
