Click to copy

• Reviewed for ksqlDB 0.29

How to Read Messages from Topic in ksqlDB

To read new messages that are being produced on a topic, you can use the PRINT command:

PRINT topicName;

Don’t forget to quote the topic if the name has non-alphanumeric characters, such as dots or dashes .

PRINT 'topic-name';

Choosing what to read

If you are only interested in reading a sample of messages on a topic, you can do so by limiting the output. Alternatively, you can choose to read the topic from the beginning.

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