How can I create an Empty consumer group and start consuming from the latest messages?
Last updated: August 11, 2026
Problem Statement
An old consumer group has consumed old topics already. Now, the consumer group state is DEAD. That means the consumer group was gone. If you create the same consumer group, it will consume from the first offset. If you don't want to consume the same messages again, how can you create the same consumer group and consume from the latest messages?
Solution
We can use rpk group seek with --to endoption.
- Make sure the consumer group does not exist.
rpk group listto check the existing consumer groups - Run
rpk group seek --to end --topics --allow-new-topics - Check
rpk group describe- You can find an
Emtpystate andCURRENT-OFFSETandLOG-END-OFFSETare the same (Lag = 0).
- You can find an
- Add consumer group members.
- The consumers will start consuming the new messages and not consuming the existing ones.
Notes
Without --to endoption, we can create an Empty consumer group and consume from the start offset.
For more information about using the rpk command, please refer to the Redpanda doc rpk group seek.
If you have further questions or need additional guidance please reach out to Redpanda Support.