# pulsar

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

---
title: pulsar
latest-connect-version: 4.117.0
latest-operator-version: v26.2.5
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.6
docname: outputs/pulsar
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: outputs/pulsar.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/outputs/pulsar.adoc
description: Write messages to an Apache Pulsar server.
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-10-29"
page-generated-sources:
  - include: connect:components:partial$descriptions/outputs/pulsar.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/outputs/pulsar.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/outputs/pulsar.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

<!-- Source: https://docs.redpanda.com/connect/components/outputs/pulsar.md -->

Write messages to an Apache Pulsar server.

Introduced in version 3.43.0.

#### Common

```yml
output:
  label: ""
  pulsar:
    url: "" # No default (required)
    topic: "" # No default (required)
    tls:
      root_cas_file: ""
    key: ""
    ordering_key: ""
    max_in_flight: 64
```

#### Advanced

```yml
output:
  label: ""
  pulsar:
    url: "" # No default (required)
    topic: "" # No default (required)
    tls:
      root_cas_file: ""
    key: ""
    ordering_key: ""
    max_in_flight: 64
    auth:
      oauth2:
        enabled: false
        audience: ""
        issuer_url: ""
        scope: ""
        private_key_file: ""
      token:
        enabled: false
        token: ""
```

## [](#fields)Fields

### [](#auth)`auth`

Optional configuration of Pulsar authentication methods.

Requires version 3.60.0 or later.

**Type**: `object`

### [](#auth-oauth2)`auth.oauth2`

Parameters for Pulsar OAuth2 authentication.

**Type**: `object`

### [](#auth-oauth2-audience)`auth.oauth2.audience`

OAuth2 audience.

**Type**: `string`

**Default**: `""`

### [](#auth-oauth2-enabled)`auth.oauth2.enabled`

Whether OAuth2 is enabled.

**Type**: `bool`

**Default**: `false`

### [](#auth-oauth2-issuer_url)`auth.oauth2.issuer_url`

OAuth2 issuer URL.

**Type**: `string`

**Default**: `""`

### [](#auth-oauth2-private_key_file)`auth.oauth2.private_key_file`

The path to a file containing a private key.

**Type**: `string`

**Default**: `""`

### [](#auth-oauth2-scope)`auth.oauth2.scope`

OAuth2 scope to request.

Requires version 4.29.0 or later.

**Type**: `string`

**Default**: `""`

### [](#auth-token)`auth.token`

Parameters for Pulsar Token authentication.

**Type**: `object`

### [](#auth-token-enabled)`auth.token.enabled`

Whether Token Auth is enabled.

**Type**: `bool`

**Default**: `false`

### [](#auth-token-token)`auth.token.token`

Actual base64 encoded token.

**Type**: `string`

**Default**: `""`

### [](#key)`key`

An optional key to populate for each message.

This field supports [interpolation functions](https://docs.redpanda.com/connect/configuration/interpolation/#bloblang-queries).

**Type**: `string`

**Default**: `""`

### [](#max_in_flight)`max_in_flight`

The maximum number of messages to have in flight at a given time. For outputs that send messages in batches, this limit applies to message batches. Increase this value to improve throughput.

**Type**: `int`

**Default**: `64`

### [](#ordering_key)`ordering_key`

The ordering key to publish messages with.

This field supports [interpolation functions](https://docs.redpanda.com/connect/configuration/interpolation/#bloblang-queries).

**Type**: `string`

**Default**: `""`

### [](#tls)`tls`

Specify the path to a custom CA certificate to trust the broker TLS service.

Requires version 4.2.0 or later.

**Type**: `object`

### [](#tls-root_cas_file)`tls.root_cas_file`

The path of a PEM file containing the certificate authority certificates that the client trusts when it verifies the TLS certificate of the broker. Leave empty to trust the certificate authorities of the host system.

**Type**: `string`

**Default**: `""`

```yaml
# Examples:
root_cas_file: ./root_cas.pem
```

### [](#topic)`topic`

The topic to publish to.

**Type**: `string`

### [](#url)`url`

A URL to connect to.

**Type**: `string`

```yaml
# Examples:
url: pulsar://localhost:6650

# ---

url: pulsar://pulsar.us-west.example.com:6650

# ---

url: pulsar+ssl://pulsar.us-west.example.com:6651
```