Skip to content

pulsarctl does not have a way to view messages from a partitioned topic #1623

@dmonopoly

Description

@dmonopoly

If I try

pulsarctl subscriptions peek my-topic-name my-subscription-name

for a partition topic, I get

code: 405 reason: Peek messages on a partitioned topic is not allowed

And specifying a more specific partition with

pulsarctl subscriptions peek my-topic-name-partition-0 my-subscription-name

just yields code: 404 reason: Message not found

My interest is in seeing the publishTime and eventTime values for many messages between 2 particular timestamp ranges.

kafkactl has a way to view messages like this, across partitions, without issue:

kafkactl consume my-topic --from-timestamp 1727896337000 --to-timestamp 1727896437000 --print-timestamps

If there is a better way to do this, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions