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

# Tencentcloudlogservice

> OpenTelemetry exporter for Tencentcloudlogservice

# Tencentcloudlogservice Exporter

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

**Available in:** `contrib`

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

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

## Supported Telemetry

![Logs](https://img.shields.io/badge/logs-beta-blue)

## Overview

This exporter supports sending OpenTelemetry log data to [LogService](https://cloud.tencent.com/product/cls).

* `region` (required): LogService's [Region](https://cloud.tencent.com/document/product/614/56473).
* `logset` (required): LogService's LogSet ID.
* `topic` (required): LogService's topic ID.
* `secret_id` (optional): TencentCloud secret id.
* `secret_key` (optional): TencentCloud secret key.

# Example:

## Simple Log Data

```yaml theme={null}
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: ":4317"

exporters:
  tencentcloud_logservice:
      # LogService's Region, https://cloud.tencent.com/document/product/614/18940
      # set cls.{region}.tencentcloudapi.com, eg cls.ap-beijing.tencentcloudapi.com;
    region: "ap-beijing"
    # LogService's LogSet ID
    logset: "demo-logset"
    # LogService's Topic ID
    topic: "demo-topic"
    # TencentCloud secret id
    secret_id: "demo-secret-id"
    # TencentCloud secret key
    secret_key: "demo-secret-key"

service:
  pipelines:
    logs:
      receivers: [otlp]
      exporters: [tencentcloud_logservice]
```

# Changelog

* 2021-11-10 Change configuration item **endpoint** to **region**, by @wgliang
* 2021-11-01 Initial implementation by @wgliang in #5722

## Configuration

### Example Configuration

```yaml theme={null}
tencentcloud_logservice:
  region: "ap-beijing"
tencentcloud_logservice/2:
  region: "ap-beijing"
  # LogService's LogSet ID
  logset: "demo-logset"
  # LogService's Topic ID
  topic: "demo-topic"
  # TencentCloud secret id
  secret_id: "demo-secret-id"
  # TencentCloud secret key
  secret_key: "demo-secret-key"
```

***

*Last generated: 2026-07-06*
