Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Use the Kafka Message Stream Viewer

The Message Stream Viewer displays messages from a Kafka topic in AxonOps. Use it to inspect topic data during troubleshooting, validation, and operational checks.

Before a user can stream messages, they must have stream access for the topic or cluster.

Open the Kafka cluster in AxonOps, expand Topics, and select Stream Access.

Kafka Stream Access page

Use the Topic field to select the scope of the grant.

You can grant access to:

  • All topics in the selected Kafka cluster.
  • A specific topic.

Kafka stream access topic selection

Set Member Type to either User or Group.

Kafka stream access member type selection

Enter the AxonOps username or group name, then click Grant Access.

Kafka stream access username entry

The grant appears in the access table. Use Revoke to remove access.

Open Topics and select Stream.

Kafka Topic Stream page

The page shows the stream configuration at the top and the message table below it.

Select the topic to inspect from the Topic field.

The topic is mandatory.

Use Partition Mode to choose where streaming starts.

Kafka stream partition mode selection

Available modes are:

ModeDescription
EarliestStart from the earliest retained records.
LatestStart from new records produced after the stream starts.
Specify Partition OffsetsSelect partitions and starting offsets manually.
Specify Partition TimestampsSelect partitions and start from records at or after a timestamp.

When using Specify Partition Offsets, click the settings button next to the partition mode field.

Enable the partitions you want to read from, review the offsets, then click Apply.

Kafka stream partition offset selection

When using Specify Partition Timestamps, click the settings button next to the partition mode field.

Choose whether to use the same timestamp for all partitions, select the partitions to include, then click Apply.

Kafka stream partition timestamp selection

Select Schema encoded when the topic contains schema-encoded messages.

Kafka stream schema encoded option

Select Filter stream to filter returned messages with a regular expression.

Kafka stream regular expression filter

Use Limit returned rows to cap how many messages are returned to the UI.

This is useful for high-volume topics where an unrestricted stream would quickly fill the table.

Click Connect to connect the stream viewer to an available agent.

Kafka stream connect button

When the connection succeeds, the page status changes to connected and the button changes to Disconnect.

Kafka stream connected state

Click Start Stream.

Kafka stream start button

The page status changes to started, and messages appear in the table.

Kafka messages streaming in the message table

The table includes:

  • Time
  • Partition
  • Offset
  • Headers
  • Message

Use the filters above the table to filter by partition, offset, or message content. Use the column checkboxes to show or hide fields. Click Clear to clear the current table contents.

Click Stop Stream to stop reading messages.

Kafka stream stop button

After streaming stops, you can adjust the stream settings and start again, or click Disconnect to close the agent connection.

Warning

Message streaming can expose sensitive application data. Use the narrowest practical topic scope, limit returned rows on high-volume topics, and revoke stream access when it is no longer required.