jetstream newbie questions: How do I inspect the contents of a workqueue stream to see what all messages are pending? #4778
-
Hi everyone, I am exploring nats to see if we can use it in our product as queue system. I created a stream with workqueue retention policy and published a bunch of messages into it. Now, I want to see the messages in the stream that are yet to be consumed. I tried this: (EVENTS is the name of stream)
I get the following error:
So how do I view all messages in the stream without consuming them, say for debugging reasons? Do I have to write a consumer that fetches all messages, prints them, but doesn't ack them? Is there a CLI utility for this? In general, is there a UI that helps with management of streams/KV/objects? Similarly, if I do Unrelated question: I need to be able to implement deadletter queues as well, and the official documentation says to listen on Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
The latest NATS CLI version supports viewing WQs if you enable direct get option when creating the stream. |
Beta Was this translation helpful? Give feedback.
-
@vamshiaruru did you manage to find an easy way to view messages in a queue? |
Beta Was this translation helpful? Give feedback.
-
oh! @derekcollison thanks! this one works! |
Beta Was this translation helpful? Give feedback.
Use nats cli from top of main and stream view or SCP.