# zmq4

> 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: zmq4
latest-connect-version: 4.93.0
latest-operator-version: v26.1.4
latest-console-tag: v3.7.3
latest-redpanda-tag: v26.1.9
docname: inputs/zmq4
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: inputs/zmq4.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/inputs/zmq4.adoc
page-git-created-date: "2024-05-24"
page-git-modified-date: "2025-10-06"
---

<!-- Source: https://docs.redpanda.com/connect/components/inputs/zmq4.md -->

**Type:** Input ▼

[Input](https://docs.redpanda.com/connect/components/inputs/zmq4/)[Output](https://docs.redpanda.com/connect/components/outputs/zmq4/)

**Available in:** Self-Managed

Consumes messages from a ZeroMQ socket.

#### Common

```yml
inputs:
  label: ""
  zmq4:
    urls: [] # No default (required)
    bind: false
    socket_type: "" # No default (required)
    sub_filters: []
```

#### Advanced

```yml
inputs:
  label: ""
  zmq4:
    urls: [] # No default (required)
    bind: false
    socket_type: "" # No default (required)
    sub_filters: []
    high_water_mark: 0
    poll_timeout: 5s
```

By default Redpanda Connect does not build with components that require linking to external libraries. If you wish to build Redpanda Connect locally with this component then set the build tag `x_benthos_extra`:

```bash
# With go
go install -tags "x_benthos_extra" github.com/redpanda-data/benthos/v4/cmd/benthos@latest

# Using make
make TAGS=x_benthos_extra
```

There is a specific docker tag postfix `-cgo` for C builds containing this component.

## [](#fields)Fields

### [](#urls)`urls`

A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.

**Type**: `array`

```yml
# Examples

urls:
  - tcp://localhost:5555
```

### [](#bind)`bind`

Whether to bind to the specified URLs (otherwise they are connected to).

**Type**: `bool`

**Default**: `false`

### [](#socket_type)`socket_type`

The socket type to connect as.

**Type**: `string`

Options: `PULL` , `SUB` .

### [](#sub_filters)`sub_filters`

A list of subscription topic filters to use when consuming from a SUB socket. Specifying a single sub\_filter of `''` will subscribe to everything.

**Type**: `array`

**Default**: `[]`

### [](#high_water_mark)`high_water_mark`

The message high water mark to use.

**Type**: `int`

**Default**: `0`

### [](#poll_timeout)`poll_timeout`

The poll timeout to use.

**Type**: `string`

**Default**: `"5s"`