Searching for messages
This page describes how to use Lenses to use the Explore screen to explore, search and debug messages in a topic.
Examining a message
After selecting a topic you will be shown more details of the topic. The SQL Snapshot engine will return to you 200 of the latest messages for partition 0. Both the key and value of the message are displayed in a tree format which is expandable.
At the top of each message, the Kafka metadata (partition, timestamp, offset) is displayed.
Hovering to the right allows you a message the clipboard.
To download all messages to JSON or CSV see here.
Flattening the data view
The SQL Snapshot engine deserializes the data on the backend of Lenses and sends it over the WebSocket to the client. By default, the data is presented in a tree format but it's also possible to flatten the data into a grid view. Select the grid icon.
Searching by partition
Use the partition drop-down to change the partition to return messages you are interested in.
Searching by timestamp
Use the timestamp picker to search for messages from a timestamp.
Searching by offset
Use the offset select to search for messages from an offset.
Live sample
The SQL Snapshot engine has a live mode. In this mode the engine will return a sample of messages matching the query. To enable this, select the Live Sample
button. The data view will now update with live records as the are written to the topic. You can also edit the query if required.
This is sample data, not the full set to avoid overloading the browser
Changing the SQL deserializer format
For the SQL Snapshot engine to return data it needs to understand the format of the data in a topic. If a topic is backed by a Schema registry it is automatically set to AVRO. For other types, such as JSON or Strings the engine tries to determine the format.
If you wish to override or correct the format used select either Reset Types or Change Types from the action menu.
Last updated