liveBook · Manning

Kafka-console-consumer

kafka-console-consumer is an Apache Kafka command-line utility that reads records from topics or partitions and prints them to the console.

How 2 Manning books explain it

Apache Kafka in Action

kafka-console-consumer.sh is an Apache Kafka command-line utility that reads records from a topic and displays them on the console.

How it is used
Reads Kafka topic records for real-time monitoring, analysis, inventory updates, and historical replay.
How deep it goes
Demonstrates topic selection, broker connection, default offsets, replay, cancellation, and parallel consumers without covering advanced consumer configuration.
Examples
Uses products.prices.changelog, coffee-pad price records, localhost:9092, and multiple terminal consumers.
What you can do after
Operate it via kafka-console-consumer.sh to watch new records or replay available topic data.

Read how Apache Kafka in Action explains kafka-console-consumer →

Troubleshooting Java, Second Edition

kafka-console-consumer is a Kafka command-line tool that reads and displays records from Kafka topics.

How it is used
Uses Kafka event logs to inspect messages, replay missed events, and verify consumer behavior during incident investigation.
How deep it goes
Explains its troubleshooting role and replay workflow, but gives no command syntax or option-level details.
Examples
Uses an Email Service configured for the wrong topic, then validates recovery by replaying its missed events.
What you can do after
Diagnose/debug with it by inspecting Kafka records and validating a consumer after correcting topic configuration.

Read how Troubleshooting Java, Second Edition explains kafka-console-consumer →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.