---
title: redpanda_data_transform
latest-connect-version: 4.118.0
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.7
docname: processors/redpanda_data_transform
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: processors/redpanda_data_transform.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/processors/redpanda_data_transform.adoc
description: Executes a Redpanda Data Transform as a processor.
page-self-managed-only: "true"
page-git-created-date: "2024-08-15"
page-git-modified-date: "2026-10-30"
page-generated-sources:
  - include: connect:components:partial$descriptions/processors/redpanda_data_transform.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/processors/redpanda_data_transform.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/processors/redpanda_data_transform.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# redpanda_data_transform

> 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)

<!-- Source: https://docs.redpanda.com/connect/components/processors/redpanda_data_transform.md -->

Executes a Redpanda Data Transform as a processor.

Introduced in version 4.31.0.

This processor executes a Redpanda Data Transform WebAssembly module, calling OnRecordWritten for each message being processed.

For how transforms work, see [How transforms work](https://docs.redpanda.com/streaming/current/develop/data-transforms/how-transforms-work/).

#### Common

```yml
processor:
  label: ""
  redpanda_data_transform:
    module_path: "" # No default (required)
    input_key: "" # No default (optional)
    output_key: "" # No default (optional)
    input_headers:
      include_prefixes: []
      include_patterns: []
    output_metadata:
      include_prefixes: []
      include_patterns: []
```

#### Advanced

```yml
processor:
  label: ""
  redpanda_data_transform:
    module_path: "" # No default (required)
    input_key: "" # No default (optional)
    output_key: "" # No default (optional)
    input_headers:
      include_prefixes: []
      include_patterns: []
    output_metadata:
      include_prefixes: []
      include_patterns: []
    timestamp: "" # No default (optional)
    timeout: 10s
    max_memory_pages: 1600
```

## Fields

### `input_headers`

Determine which (if any) metadata values should be added to messages as headers.

**Type**: `object`

### `input_headers.include_patterns[]`

A list of explicit metadata key regular expression (re2) patterns to match against.

**Type**: `array<string>`

**Default**: `[]`

```yaml
# Examples:
include_patterns:
  - .*

# ---

include_patterns:
  - _timestamp_unix$
```

### `input_headers.include_prefixes[]`

A list of explicit metadata key prefixes to match against.

**Type**: `array<string>`

**Default**: `[]`

```yaml
# Examples:
include_prefixes:
  - foo_
  - bar_

# ---

include_prefixes:
  - kafka_

# ---

include_prefixes:
  - content-
```

### `input_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`

### `max_memory_pages`

The maximum amount of wasm memory pages (64KiB) that an individual wasm module instance can use

**Type**: `int`

**Default**: `1600`

### `module_path`

The path of the compiled Redpanda Data Transform module to run, such as the `.wasm` file built by `rpk transform build`.

**Type**: `string`

### `output_key`

An optional name of metadata for an output message key.

**Type**: `string`

### `output_metadata`

Determine which (if any) message headers should be added to the output as metadata.

**Type**: `object`

### `output_metadata.include_patterns[]`

A list of explicit metadata key regular expression (re2) patterns to match against.

**Type**: `array<string>`

**Default**: `[]`

```yaml
# Examples:
include_patterns:
  - .*

# ---

include_patterns:
  - _timestamp_unix$
```

### `output_metadata.include_prefixes[]`

A list of explicit metadata key prefixes to match against.

**Type**: `array<string>`

**Default**: `[]`

```yaml
# Examples:
include_prefixes:
  - foo_
  - bar_

# ---

include_prefixes:
  - kafka_

# ---

include_prefixes:
  - content-
```

### `timeout`

The maximum period of time for a message to be processed

**Type**: `string`

**Default**: `10s`

### `timestamp`

An optional timestamp to set for each message, in milliseconds since the Unix epoch. When left empty, the current timestamp is used.

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

**Type**: `string`

```yaml
# Examples:
timestamp: ${! timestamp_unix_milli() }

# ---

timestamp: ${! metadata("kafka_timestamp_ms") }
```