The plugin provides SSH commands for stream offset inspection and replay.
Administrators only. These commands require the ADMINISTRATE_SERVER global capability.
Offset and replay commands require:
general.enableBrokerApi = truestream.enabled = trueShow current stream offsets for all consumers of a topic.
Usage:
ssh -p 29418 <user>@<host> events-rabbitmq offsets <topic>
Output fields:
consumerId)Notes:
consumerId is primarily useful for correlation across repeated offset calls and related log entries.Replay events for a topic from a given offset.
Usage:
ssh -p 29418 <user>@<host> events-rabbitmq replay <topic> -- <offset>
Offset behavior:
On success, the command prints the resolved offset:
Replay started for topic <topic> from offset <resolved-offset>
The replay resets and recreates the subscriber for the topic. A subscriber for the topic must already exist. The command exits with status 1 if the broker API is disabled, stream support is disabled, or no subscriber is found for the topic.
Part of Gerrit Code Review