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
Get easy to digest how-tos on ksqlDB
Sign up
Please read our Privacy Policy to understand how we protect and manage your data.
You may also like