Help › Explore a database

Use Kafka commands in a query tab

Read messages, produce one and describe topics, groups and the cluster with consume, produce and describe in a query tab on a Kafka connection.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

A query tab on a Kafka connection takes three commands: consume reads messages, produce writes one, and describe shows a topic, a consumer group or the cluster. They are Querlyn's own small language, in the spirit of kcat and Kafka's command-line tools: Querlyn reads each command and does what it says, and runs nothing else.

To open one, right-click the connection in the sidebar and choose Query › New Query on This Connection. ⌘↩ on macOS or Ctrl+Enter on Windows and Linux runs the command at the cursor, and the results appear in the grid as for any query. Each command is on a line of its own, or ends with ;. A line starting with -- or # is a comment.

consume

consume orders
consume orders from beginning limit 50
consume orders partition 3 from offset 1204
consume orders from -2h key customer-7
consume orders from '2026-10-09 14:00' contains refund uncommitted

consume reads a topic's messages the way a topic tab does, with the same columns; see Read messages from a topic. Its options, in any order:

OptionWhat it does
partition 3One partition instead of all.
from newest 100Where reading starts in each partition: newest and a number (the default, 100), beginning, end, offset and a number, or a time: 2026-10-09T14:00 in UTC, 2026-10-09T14:00+02:00 with its offset, '2026-10-09 14:00' in quotes, or how long ago, such as -2h, -30m, -1d.
key customer-7Only messages whose key is exactly this.
contains refundOnly messages whose value contains this, in upper or lower case.
limit 50The most messages (500 when not given).
uncommittedAlso messages of aborted transactions.

A consume ends at the end the topic had when it started; to keep reading as messages arrive, open the topic in a topic tab and use Follow. Quote a name or text with spaces: key 'customer 7'.

produce

produce orders value {"id": 7, "total": 12.5}
produce orders key customer-7 header trace=4bf92f35 value 'order shipped'
produce orders partition 2 value {
  "id": 8,
  "lines": [1, 2]
}

produce writes one message, as the Produce dialog does: partition, key and any number of header name=value, then value last. A value in braces or brackets is sent as written and may run over several lines; any other value is one word or a quoted text. The result says the partition and offset it was written at. See Produce a message for which partition a message goes to.

Produce on Production

On a Production connection, running a produce asks first, as the Produce dialog does, with the same three answers: Produce, Produce and Don't Ask Again and Cancel. The second holds for the connection in the dialog and in query tabs alike until Querlyn quits. A read-only connection refuses to produce. consume and describe only read and never ask.

describe

describe topic orders
describe group billing
describe cluster
  • describe topic shows the topic's partitions (leader, replicas, those in sync, first and next offsets, messages) and, as a second result, its settings.
  • describe group shows the group's members and, as a second result, each partition it reads with its committed offset, the end offset and the lag.
  • describe cluster shows the brokers and which one is the controller.

Completion and checking

⌃Space on macOS or Ctrl+Space on Windows and Linux suggests the commands, the options that fit where the cursor is, and the names of the topics and consumer groups in the sidebar. A command Querlyn cannot read is underlined, and the message says what is wrong.

What it does not do

  • Follow new messages, consume as a consumer group or commit offsets: a consume never moves a group's offsets.
  • Create, change or delete topics or groups: use the topic tab's details and the sidebar; see Manage topics.
  • Run ksqlDB or anything that is not one of the three commands.
  • Notebook cells for Kafka.

Help for Querlyn 0.1.0. All help topics