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.
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
- clientkind of · A client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another entity.
- recorduses · A Kafka record, also called a message, is a data item published to or consumed from a Kafka topic, optionally containing a key, value, and metadata.
- topicuses · A topic is a named messaging destination or stream to which producers publish messages or records and from which consumers receive or read them.
- Apache Kafkauses · Apache Kafka is a distributed event-streaming platform for publishing, storing, processing, and consuming streams of records.
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.

