RABBITMQ-STREAMS(8) System Manager's Manual RABBITMQ-STREAMS(8)

# [NAME](#NAME)

`rabbitmq-streams` — RabbitMQ stream management tools

# [SYNOPSIS](#SYNOPSIS)

`rabbitmq-streams` \[`-q`] \[`-s`] \[`-l`] \[`-n` `node`] \[`-t` `timeout`] `command` \[`command_options`]

# [DESCRIPTION](#DESCRIPTION)

`rabbitmq-streams` is a command line tool that provides commands used to manage streams, for example, add or delete stream replicas. See the [RabbitMQ streams overview](https://www.rabbitmq.com/docs/streams).

# [OPTIONS](#OPTIONS)

[`-n`](#n) `node`

Default node is "rabbit@`target-hostname`", where `target-hostname` is the local host. On a host named "myserver.example.com", the node name will usually be "rabbit@myserver" (unless `RABBITMQ_NODENAME` has been overridden). The output of "hostname -s" is usually the correct suffix to use after the "@" sign. See [rabbitmq-server(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-server.8) for details of configuring a RabbitMQ node.

[`-q`](#q), `--quiet`

Quiet output mode is selected. Informational messages are reduced when quiet mode is in effect.

[`-s`](#s), `--silent`

Silent output mode is selected. Informational messages are reduced and table headers are suppressed when silent mode is in effect.

[`-t`](#t) `timeout`, `--timeout` `timeout`

Operation timeout in seconds. Not all commands support timeouts. Default is `infinity`.

[`-l`](#l), `--longnames`

Must be specified when the cluster is configured to use long (FQDN) node names. To learn more, see the [RabbitMQ Clustering guide](https://www.rabbitmq.com/docs/clustering)

[`--erlang-cookie`](#erlang-cookie) `cookie`

Shared secret to use to authenticate to the target node. Prefer using a local file or the `RABBITMQ_ERLANG_COOKIE` environment variable instead of specifying this option on the command line. To learn more, see the [RabbitMQ CLI Tools guide](https://www.rabbitmq.com/docs/cli)

# [COMMANDS](#COMMANDS)

[`help`](#help)

Displays general help and commands supported by `rabbitmq-streams`.

## [Replication](#Replication)

[`add_replica`](#add_replica) `queue` `node` `--vhost` `virtual-host`

Adds a stream replica on the given node.

Example:

`rabbitmq-streams add_replica --vhost "a-vhost" "a-queue" "rabbit@new-node"`

[`delete_replica`](#delete_replica) `queue` `node` `--vhost` `virtual-host`

Removes a stream replica on the given node.

Example:

`rabbitmq-streams delete_replica --vhost "a-vhost" "a-queue" "rabbit@decomissioned-node"`

[`transfer_leadership`](#transfer_leadership) `stream` `node` `--vhost` `virtual-host`

Transfers the leadership of a stream to the given node.

Example:

`rabbitmq-streams transfer_leadership --vhost "a-vhost" "a-stream" "rabbit@new-leader-node"`

## [Monitoring, observability and health checks](#Monitoring,_observability_and_health_checks)

[`stream_status`](#stream_status) `stream` `--vhost` `virtual-host`

Displays the status of a stream.

Example:

`rabbitmq-streams stream_status --vhost "a-vhost" "a-stream"`

[`restart_stream`](#restart_stream) `stream` `--vhost` `virtual-host` `--preferred-leader-node` `node`

Restarts a stream including all of it's replicas. The optional preferred node flag instructs the command to try to place the leader on a specific node during the restart.

Example:

`rabbitmq-streams restart_stream --vhost "a-vhost" "a-stream" --preferred-leader-node "node"`

## [Stream plugin](#Stream_plugin)

[`activate_stream_consumer`](#activate_stream_consumer) `--stream` `stream` `--reference` `reference` \[`--vhost` `vhost`]

Trigger a rebalancing to activate a consumer in a single active consumer group.

Example:

`rabbitmq-streams activate_stream_consumer --stream stream --reference app-1`

[`list_stream_connections`](#list_stream_connections) \[`connectioninfoitem ...`]

Returns stream protocol connection statistics.

The `connectioninfoitem` parameter is used to indicate which connection information items to include in the results. The column order in the results will match the order of the parameters. `connectioninfoitem` can take any value from the list that follows:

[`auth_mechanism`](#auth_mechanism)

SASL authentication mechanism used, such as "PLAIN".

[`client_properties`](#client_properties)

Informational properties transmitted by the client during connection establishment.

[`conn_name`](#conn_name)

Readable name for the connection.

[`connected_at`](#connected_at)

Date and time this connection was established, as timestamp.

[`connection_state`](#connection_state)

Connection state; one of:

- running
- blocked

[`frame_max`](#frame_max)

Maximum frame size (bytes).

[`heartbeat`](#heartbeat)

Negotiated heartbeat interval, in seconds.

[`host`](#host)

Server hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was disabled.

[`peer_cert_issuer`](#peer_cert_issuer)

The issuer of the peer's SSL certificate, in RFC4514 form.

[`peer_cert_subject`](#peer_cert_subject)

The subject of the peer's SSL certificate, in RFC4514 form.

[`peer_cert_serial_number`](#peer_cert_serial_number)

The serial number of the peer's SSL certificate, in hexadecimal form.

[`peer_cert_validity`](#peer_cert_validity)

The period for which the peer's SSL certificate is valid.

[`peer_host`](#peer_host)

Peer hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was not enabled.

[`peer_port`](#peer_port)

Peer port.

[`port`](#port)

Server port.

[`ssl`](#ssl)

Boolean indicating whether the connection is secured with SSL.

[`ssl_cipher`](#ssl_cipher)

SSL cipher algorithm (e.g. "aes\_256\_cbc").

[`ssl_hash`](#ssl_hash)

SSL hash function (e.g. "sha").

[`ssl_key_exchange`](#ssl_key_exchange)

SSL key exchange algorithm (e.g. "rsa").

[`ssl_protocol`](#ssl_protocol)

SSL protocol (e.g. "tlsv1").

[`subscriptions`](#subscriptions)

Number of subscriptions (consumers) on the connection.

[`user`](#user)

Username associated with the connection.

[`vhost`](#vhost)

Virtual host name with non-ASCII characters escaped as in C.

If no `connectioninfoitem` are specified then only conn\_name is displayed.

For example, this command displays the connection name and user for each connection:

`rabbitmq-streams list_stream_connections conn_name user`

[`list_stream_consumers`](#list_stream_consumers) \[`-p` `vhost`] \[`consumerinfoitem ...`]

Returns consumers attached to a stream.

The `consumerinfoitem` parameter is used to indicate which consumer information items to include in the results. The column order in the results will match the order of the parameters. `consumerinfoitem` can take any value from the list that follows:

`active`

Boolean indicating whether the consumer is active or not.

`activity_status`

Consumer activity status; one of:

- up
- single\_active
- waiting

`connection_pid`

Id of the Erlang process associated with the consumer connection.

`credits`

Available credits for the consumer.

`messages_consumed`

Number of messages the consumer consumed.

`offset`

The offset (location in the stream) the consumer is at.

`offset_lag`

The difference between the last stored offset and the last dispatched offset for the consumer.

`properties`

The properties of the consumer subscription.

`stream`

The stream the consumer is attached to.

`subscription_id`

The connection-scoped ID of the consumer.

If no `consumerinfoitem` are specified then connection\_pid, subscription\_id, stream, messages\_consumed, offset, offset\_lag, credits, active, activity\_status, and properties are displayed.

For example, this command displays the connection PID, subscription ID and stream for each consumer:

`rabbitmq-streams list_stream_consumers connection_pid subscription_id stream`

[`list_stream_publishers`](#list_stream_publishers) \[`-p` `vhost`] \[`publisherinfoitem ...`]

Returns registered publishers.

The `publisherinfoitem` parameter is used to indicate which publisher information items to include in the results. The column order in the results will match the order of the parameters. `publisherinfoitem` can take any value from the list that follows:

`connection_pid`

Id of the Erlang process associated with the consumer connection.

`messages_confirmed`

The number of confirmed messages for the publisher.

`messages_errored`

The number of errored messages for the publisher.

`messages_published`

The overall number of messages the publisher published.

`publisher_id`

The connection-scoped ID of the publisher.

`reference`

The deduplication reference of the publisher.

`stream`

The stream the publisher publishes to.

If no `publisherinfoitem` are specified then connection\_pid, publisher\_id, stream, reference, messages\_published, messages\_confirmed, and messages\_errored are displayed.

For example, this command displays the connection PID, publisher ID and stream for each producer:

`rabbitmq-streams list_stream_publishers connection_pid publisher_id stream`

[`add_super_stream`](#add_super_stream) `super-stream` \[`--vhost` `vhost`] \[`--partitions` `partitions`] \[`--binding-keys` `binding-keys`] \[`--max-length-bytes` `max-length-bytes`] \[`--max-age` `max-age`] \[`--stream-max-segment-size-bytes` `stream-max-segment-size-bytes`] \[`--leader-locator` `leader-locator`] \[`--initial-cluster-size` `initial-cluster-size`]

`super-stream`

The name of the super stream to create.

`vhost`

The name of the virtual host to create the super stream into.

`partitions`

The number of partitions the super stream will have.

`binding-keys`

Comma-separated list of binding keys.

`max-length-bytes`

The maximum size of partition streams, example values: 20gb, 500mb.

`max-age`

The maximum age of partition stream segments, using the ISO 8601 duration format, e.g. PT10M30S for 10 minutes 30 seconds, P5DT8H for 5 days 8 hours.

`stream-max-segment-size-bytes`

The maximum size of partition stream segments, example values: 500mb, 1gb.

`leader-locator`

Leader locator strategy for partition streams. Possible values are:

- client-local
- balanced

The default is `balanced`

`initial-cluster-size`

The initial cluster size of partition streams.

Create a super stream.

[`delete_super_stream`](#delete_super_stream) `super-stream` \[`--vhost` `vhost`]

Delete a super stream.

`super-stream`

The name of the super stream to delete.

`vhost`

The virtual host of the super stream.

[`list_stream_consumer_groups`](#list_stream_consumer_groups) \[`-p` `vhost`] \[`groupinfoitem ...`]

Lists groups of stream single active consumers for a vhost.

The `groupinfoitem` parameter is used to indicate which group information items to include in the results. The column order in the results will match the order of the parameters. `groupinfoitem` can take any value from the list that follows:

`consumers`

Number of consumers in the group.

`partition_index`

The stream partition index if the stream is part of a super stream, -1 if it is not.

`reference`

The group [reference (name)](/man/enterprise-packages/rabbitmq-server-fips-4.4/reference.name).

`stream`

The stream the consumers are attached to.

If no `groupinfoitem` are specified then stream, reference, partition\_index, and consumers are displayed.

For example, this command displays the stream, reference, and number of consumers for each group:

`rabbitmq-streams list_stream_consumer_groups stream reference consumers`

[`list_stream_group_consumers`](#list_stream_group_consumers) `--stream` `stream` `--reference` `reference` \[`--vhost` `vhost`] \[`consumerinfoitem ...`]

Lists consumers of a stream consumer group in a vhost.

`stream`

The stream the consumers are attached to.

`reference`

The group [reference (name)](/man/enterprise-packages/rabbitmq-server-fips-4.4/reference.name).

`vhost`

The virtual host of the stream.

The `consumerinfoitem` parameter is used to indicate which consumer information items to include in the results. The column order in the results will match the order of the parameters. `consumerinfoitem` can take any value from the list that follows:

`connection_name`

Readable name of the consumer connection.

`state`

Consumer state; one of:

- active
- inactive

`subscription_id`

The connection-scoped ID of the consumer.

If no `consumerinfoitem` are specified then subscription\_id, connection\_name, and state are displayed.

For example, this command displays the connection name and state for each consumer attached to the stream-1 stream and belonging to the stream-1 group:

`rabbitmq-streams list_stream_group_consumers --stream stream-1 --reference stream-1 connection_name state`

[`list_stream_tracking`](#list_stream_tracking) `stream` \[`--all` | `--offset` | `--writer`] \[`--vhost` `vhost`]

Lists tracking information for a stream.

`stream`

The name of the stream.

Tracking information can be filtered by their type using one of the following mutually exclusive options:

[`--all`](#all)

List offset tracking and writer deduplication information.

[`--offset`](#offset)

List only offset tracking information.

[`--writer`](#writer)

List only writer deduplication tracking information.

Example:

`rabbitmq-streams list_stream_tracking stream-1 --offset`

[`reset_offset`](#reset_offset) `--stream` `stream` `--reference` `reference` \[`--vhost` `vhost`]

Reset the stored offset for a consumer name on a stream.

Example:

`rabbitmq-streams reset_offset --stream stream --reference app-1`

# [SEE ALSO](#SEE_ALSO)

[rabbitmqctl(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmqctl.8), [rabbitmq-diagnostics(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-diagnostics.8), [rabbitmq-server(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-server.8), [rabbitmq-queues(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-queues.8), [rabbitmq-upgrade(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-upgrade.8), [rabbitmq-service(8)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-service.8), [rabbitmq-env.conf(5)](/man/enterprise-packages/rabbitmq-server-fips-4.4/rabbitmq-env.conf.5)

# [AUTHOR](#AUTHOR)

The RabbitMQ Team &lt;[contact-tanzu-data.pdl@broadcom.com](mailto:contact-tanzu-data.pdl@broadcom.com)&gt;

July 1, 2025 RabbitMQ Server

---

Document: rabbitmq-streams(8) from rabbitmq-server-fips-4.4 4.4.0-r1 (Chainguard OS)
