Data Consumer
Read a topic live or up to its end, filter on the server what KCM reads, and search what is already in your browser. This page covers every setting, the syntax of the filters and of the search, and what stays masked.
Open Data Consumer in the menu, or choose Consume in the action menu of a topic: the page opens on a tab for that topic and starts reading at once. Several tabs can stay open side by side, each with its own settings. For producing messages, see Produce and consume.
Criteria
The criteria are on top of the page. The topic comes first; the settings you rarely change are folded in the Advanced section, which shows a one line summary while it is closed.
| Setting | What it does |
|---|---|
| Topic | The topic to read. The field has the focus when you open an empty tab. |
| Start from | Where the read begins, see below. The field it needs (the number of messages, a date, offsets) appears next to it, and only then. |
| Until (optional) | A date and time: later messages are skipped, and the read ends after it. |
| Keep listening for new messages | On (default): the read goes on and shows new messages as they arrive. Off: the read stops at the end of the topic as it is when you press Start, or at the end offsets or the end date. |
Start from
| Choice | Reads |
|---|---|
| Last N messages (default: 100) | The last N messages, spread over the partitions that are not empty (10 to 10,000), then the new ones. |
| Beginning (earliest) | From the start of each partition. |
| New messages only (latest) | Nothing that is already there: it waits for new messages. |
| Date and time | From a date. A partition with no message after the date starts at its end. |
| Offsets per partition | From a start offset for each partition, and optionally up to an end offset. |
A tab or a preset you saved keeps the start it had; the last 100 messages is the start of a new tab.
Advanced
| Setting | What it does |
|---|---|
| Schema Registry | The registry used to decode keys and values. It is chosen for you when there is only one. |
| Partitions | The partitions to read. Empty means all of them. |
| Batch size | How many messages KCM fetches per poll (10 to 500). |
| Read committed | Leaves out the messages of transactions that were aborted or are not committed yet. |
| List limit | How many of the newest messages the page keeps: 1,000, 5,000 (default), 10,000 or 50,000. Above the limit the oldest messages are removed from the list, and the progress line says how many. |
The page never commits offsets. Reads from a date, an offset or the last N messages leave no consumer group on the brokers; the others use a temporary group that is deleted when the session ends.
Server filters and local search
The page has two ways to narrow what you see, and they work at different places.
| Server filters (Filters) | Search of the loaded messages | |
|---|---|---|
| Where | On the server, on every message read, before it is sent to the browser. | In your browser, on the messages already in the list. |
| Effect | Decides which messages reach the list at all, and so which ones are counted and kept. | Hides messages of the list. Nothing is removed from it, and clearing the search shows them again. |
| When it counts | For the messages read after the filters apply. | At once, on what is loaded. |
| Syntax | Filter syntax | Search syntax |
Use a filter to read less from a topic that is large; use the search to look around in what you already have.
Writing and editing filters
Under the action buttons, one line holds the filters as a text query. It is checked as you type: a query that does not parse leaves your filters as they were and shows the error with a mark under the first wrong character. The active filters appear as chips below it, and each chip has a cross to remove it.
Edit visually (or the Filters button) opens a panel beside the page with the same filters as groups and cards: type, field or header name, operation and value, with a small label above each field. The list stays visible while the panel is open. The text query and the cards always show the same filters, and you can edit either one. The footer of the panel has Clear all filters (it asks first), Cancel and Apply.
Filter syntax
A filter is a target, an operator and a value, for example value.status = "PAID". Filters are
combined with and, or and not.
Targets
| Target | Looks at | Example |
|---|---|---|
key | The key of the message, as text. | key startswith "ORD-" |
value | The whole value, as text. | value contains "timeout" |
value.<path> | One field of a JSON, Avro or Protobuf value. See paths. | value.customer.city = "Paris" |
header.<name> | The value of the header with that name. | header.source = web |
header | The value of any header. | header contains "retry" |
headername | The names of the headers. | headername = traceId |
partition | The partition number. | partition in (1, 2) |
offset | The offset in the partition. | offset >= 1500 |
timestamp | The time of the message. See dates. | timestamp after 2026-11-20T10:00:00Z |
size | The size on the topic in bytes, key and value together. | size > 100000 |
schema | The Schema Registry id of the value, else of the key. | schema = 12 |
Partition, offset, timestamp, size and schema are not personal data: the masking never touches them.
Operators
| Operator | Means | Example |
|---|---|---|
= | Equals. | value.status = "PAID" |
!= | Does not equal. | header.source != mobile |
contains | Contains the text. | value contains "error" |
startswith | Starts with the text. | key startswith "ORD-" |
endswith | Ends with the text. | key endswith "-eu" |
~ | Matches a regular expression. | value.orderId ~ "^ORD-\d{4}$" |
> >= < <= | Compares numbers (or dates, for a JSON field that holds one). | value.amount >= 100 |
in (a, b, c) | Equals one of the values (up to 100). | value.status in ("PAID", "NEW") |
between x and y | Lies between two values, bounds included. | offset between 100 and 200 |
exists | The field, the header or the metadata is there. | value.customer.email exists |
before after | Earlier or later than a date. | timestamp before 2026-11-21 |
Not every operator fits every target: timestamp takes before, after,
between and =; partition and offset take =,
in, the comparisons and between; text targets take the text operators. The page tells you
when an operator does not apply.
Put not in front of any filter to turn it around: not partition in (1, 2). A message
that has no such field matches a negated filter.
Combining filters
andneeds both sides to match,orneeds one.andbinds tighter thanor, and parentheses group:value.status = "PAID" and (partition = 0 or partition = 2)notbefore a filter or a parenthesis negates it:not (value.status = "CANCELLED" or value.status = "FAILED")- Text is compared ignoring case. Add
csafter the value to match case:key = "Ord-1" cs - Quote a value that has spaces or special characters:
value.name = "Jane Doe". Inside quotes, write\"for a quote. - A filter without its value is ignored.
Paths into a value
A value.<path> target reads a field of a JSON, Avro or Protobuf value. Field names are case
sensitive.
| Path | Reads |
|---|---|
value.status | The field status at the top. |
value.customer.address.city | A nested field. |
value.items[*].sku | The field sku of any element of the array
items: the filter matches when one element matches. |
value.items[0].sku | The field sku of the first element only. |
value..email | Every field named email, at any depth. |
In the visual editor, the field path suggests the paths of the schema of the topic and of the messages already received.
Dates
A timestamp filter, and a date compared with a JSON field, accept:
- ISO 8601 with an offset:
2026-11-20T10:00:00+01:00, or withZfor UTC; - ISO 8601 without an offset, read as UTC:
2026-11-20T10:00:00; - a date alone, read as midnight UTC:
2026-11-20; - epoch seconds or epoch milliseconds:
1763632800or1763632800000.
Groups
In the visual editor, filters live in groups that you can nest up to three levels. A group keeps a message when it matches:
- all of the filters of the group (
and); - any of them (
or); - none of them (
not (a or b)).
Negation is part of the operations too: does not equal, does not contain, is not one of
and does not exist are the operations equals, contains, is one of and
exists with a not in front, and the text query shows them that way. A session takes up to 50
filters.
Search syntax
The search field sits above the list: Search in the N loaded messages. Separate terms with spaces: every term must match. A term is free text, or a qualifier followed by a colon.
| Term | Keeps the messages |
|---|---|
paid | Whose key, headers or payload contain the text, ignoring case. This is the only kind of term that is highlighted. |
"two words" | Same, for a text with spaces. |
key:ORD-1 | Whose key contains the text. |
key:="ORD-1089" | Whose key is exactly that. |
partition:1 | Of partition 1. partition:1,2 keeps either. |
offset:119 | With that offset. |
offset:>=100 | With an offset in the range: >, >=,
<, <=. |
offset:100..200 | With an offset from 100 to 200, bounds included. |
header:source=web | With a header source whose value contains
web. |
header:source==web | With a header source whose value is exactly
web. |
header:source | That have a header named source. |
header:=web | With any header whose value contains web
(header:==web for exactly). |
value:paid | Whose payload contains the text (the key and headers are not looked at). |
schema:12 | Whose value or key uses the schema id 12. |
schema:avro | Whose value or key uses a schema of that type. |
- Quote a value with spaces:
key:"ORD 1",header:source=="web app". Inside quotes, write two quotes for one. - A qualifier with a value that does not fit it (
partition:abc) is searched as free text. - Example:
partition:1 offset:>=30 paidkeeps the messages of partition 1, from offset 30, that containpaid.
The magnifier that appears on the key, partition and offset cells of a message opens a small menu:
Search for this in the loaded messages adds the exact term (partition:1,
key:="ORD-1089", offset:119) to the search, and Filter on this (Filters)
adds the matching server filter.
The range of dates of the list is in the Timestamp column: click its filter icon and give a start and an end.
Working with the messages
Counters
While a session runs, one line shows how many messages each step kept:
Read 273 → Matched 189 → In list 189 → Visible 12
- Read: messages KCM read from the partitions, before any filter.
- Matched: messages that passed the server filters and were sent to the browser.
- In list: messages in the list now (the oldest are removed above the list limit).
- Visible: messages the search or the Timestamp filter keeps. It appears when one is active.
In the visual editor, each filter and each group shows how many messages it matched out of the ones it looked at, as
189 / 273 match, so you can see which filter removes the most. Clear list empties the
list and the read goes on.
Changing filters while reading
Edit the filters while a session runs: a warning bar says they are not used by the session yet, with an Apply now button (the panel has one too). The new filters count for the messages read next. The messages already in the list stay, and a line marks where the new filters begin. Filters changed while no session runs apply when you press Start.
Filter or exclude from a message
Open a message: the bar at the top of the window has Copy value and Filter on this…. Filter on this… adds a server filter on the key or the partition of the message, or excludes it, keeps the messages after or before its date, or excludes that exact date. The same menu searches the loaded messages for its key, partition or offset. A partition joins the partition is one of filter that already exists instead of making a second one. In the Attributes and Headers tabs, Filter and Exclude next to each field or header do the same for that value. The cell menu of the list offers the same, without opening the message.
The More menu of the window has Send to Produce… (the Produce Data panel with this message ready to edit and send), Re-send to topic… (produces this message again on its topic after a confirmation) and Download (this message as a JSON file, as the window shows it).
Presets
The Presets menu of the toolbar saves the settings of the page (topic, partitions, start, filters, limits) and applies them again later, from any tab:
- Save current… asks for a name. Tick the box to share the preset with the people who can read the topic: they then see its filter values too.
- Each saved preset is listed with its topic, and shared presets are marked shared. One click applies it.
- Manage… opens the list of the presets of the cluster, where you update a preset with the current settings, share it, make it private or delete it.
Presets apply and save when no session runs.
Selecting messages
Tick the box of a row to select it, or the box of the header to select the rows of the page. A bar above the list shows how many messages are selected, with:
- Compare, when exactly two messages are selected (see Compare).
- Export selected, as JSON or CSV, in the same format as Export.
- Copy to... (since 1.8.0): copy the selected messages to another topic or cluster.
- Clear selection.
The selection stays while new messages arrive. A selected message that the search hides stays selected, and the bar says how many are hidden. A message removed from the list (list limit or Clear list) leaves the selection. Start and a change of topic clear it. Each tab has its own selection, and it is never saved.
Export and send to Produce
- Export writes the messages of a range of the list to a CSV or a JSON file; Export selected writes the selected messages. Both export what the list shows: cut and flagged as cut where a value was cut, and masked where the topic masks. Nothing is read again from the topic for an export. Each export, including the download of one message, is recorded in the audit trail without its content.
- Send to Produce… in the toolbar opens the Produce Data panel in bulk mode, with the messages of a range ready to be sent again, keys, headers and payloads included.
- The action menu of a row has Re-send to topic…, which produces that message again on its topic after a confirmation (the copy gets a new offset), and Send to Produce…, which opens the Produce Data panel with that message ready to edit.
Long messages and hexadecimal
- A key or a value longer than the display limit is cut in the list and marked
TRUNCATED, with its size on the topic. Open the message and choose Load full message to read it from the topic, decoded and masked like the rest. - The message window has a Hex view of the value or of the key, for payloads that are not text. A payload that cannot be shown as text, such as a Protobuf message without its schema, is listed as bytes.
- A message that cannot be decoded shows a decode error and does not stop the session.
Compare
Select two messages in the list and choose Compare in the selection bar. The window shows them side by side, the older one as A and the newer one as B, with a tab for the value, the key and the headers, and the number of differences on each tab. Compare uses the messages as the list shows them, masked where the topic masks.
Reading __consumer_offsets
KCM decodes the records of the internal topic __consumer_offsets and shows each key and value as
JSON. Confluent Cloud does not expose this topic.
- Offset commits: the key has the type
OFFSET_COMMITwith the group, the topic and the partition. The value has the committed offset, the leader epoch when the broker stores it, the commit metadata and the commit time (ISO-8601 and epoch milliseconds). - Classic groups: a
GROUP_METADATArecord shows the protocol type, the generation, the protocol, the leader, the time of the last state change and the members with their member id, group instance id, client id, client host and timeouts. For groups that use the consumer protocol, the subscription (topics and owned partitions) and the assignment of each member are decoded, up to 100 topics and 100 partitions each, and the rest is counted. For other protocols only their size is shown. - Groups that use the new consumer group protocol: the group epoch, the subscribed topics, each member (client id, client host, subscribed topics or regular expression, server assignor, and the protocols of a member that still joins with the classic protocol), the target assignment and the current assignment of each member with its state. Their partitions are listed by topic id, as the broker stores them.
- Share groups and streams groups: their records show the record type, the group, the member and the size of the value.
A record type KCM does not know is shown as unsupported record type vN with the size of its key.
A record without a value is a tombstone and says what was deleted: offset deleted, group deleted, member
removed, regular expression removed or record deleted. A record that does not match its format is shown with
the decoding error and, when the topic has no masking, its raw bytes.
Filters and masking apply to the decoded JSON, for example a key filter containing
"group":"my-group" with a value field filter offset greater than 1000.
Masking
When a topic has masked fields (see Classification and masking), KCM masks each message before it applies the filters. A filter therefore only sees the masked value: it can never reveal a masked value by matching it, and it will not match the real one either. The editor warns you when a filter looks at a masked field, and the attributes of a message mark the masked fields. Messages that cannot be decoded are not sent at all for such topics, and binary content without a decoder (for example Protobuf without a registered schema) is masked as a whole when the classification names fields of the topic. Re-sending a message to its topic produces it again there and does not display its content.
The search of the loaded messages, the exports and Send to Produce… work on the messages as the server sent them, so they hold the masked values too.
Audit
The audit trail records each live session: who read which topic, and the filters it used (the structure and the operations, not the messages). It records each change of filters during a session, each export (topic, format and number of messages, not the file), and the messages produced from the page. Message content is never written to the audit trail or to the logs. See Audit trail.
Permissions
- Reading needs
READon the topic: a role on the cluster (VIEWER or above) or a topic grant with READ. TheAUDITORrole never reads message content. - Send to Produce… and Re-send to topic… need an EDITOR or ADMIN role on the cluster. Export, Export selected and Download need only the right to read the topic.
- An administrator can limit the live consumer in Settings: the largest batch per poll, the sessions per user and the sessions per KCM instance.