Click to copy

• Reviewed for ksqlDB 0.29

How to Query a Topic from the Beginning in ksqlDB

By default, PRINT statements consume messages that were produced after you submitted the command. To read from the beginning of the topic, add FROM BEGINNING:

PRINT 'topicName' FROM BEGINNING;

Remember to quote the topic name if it has dots or dashes in it.

Discover what readers are saying
topictale
Receive periodic ksqlDB how-tos
Sign up
Please read our Privacy Policy to understand how we protect and manage your data.
You may also like

We use cookies to improve your experience, as described in our Cookies Policy. By using this website you agree to its usage.