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 →
Also covered in
What to know first
- topicA topic is a named channel or category that groups messages or records for publication and delivery to interested consumers.
- messageA message is a discrete unit of information or data communicated between participants or software components, often represented as a structured record.
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 party or system.
- topicuses · A topic is a named channel or category that groups messages or records for publication and delivery to interested consumers.
- messageuses · A message is a discrete unit of information or data communicated between participants or software components, often represented as a structured record.
- Apache Kafkauses · Apache Kafka is a distributed event-streaming platform for publishing, storing, and processing streams of records.
Questions about kafka-console-consumer
What is 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.
Which Manning books explain kafka-console-consumer?
Apache Kafka in Action and Troubleshooting Java, Second Edition.
What should I know before learning kafka-console-consumer?
Manning books that teach kafka-console-consumer usually introduce topic and message first.
What is the difference between kafka-console-consumer and kcat?
kafka-console-consumer is an Apache Kafka command-line utility that reads records from topics or partitions and prints them to the console. kcat is a command-line Apache Kafka client for producing, consuming, and inspecting records and Kafka metadata.
What is kafka-console-consumer a kind of?
Kafka-console-consumer is a kind of client. A client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another party or system.
What is kafka-console-consumer part of?
Kafka-console-consumer is part of Kafka CLI. The Kafka CLI is the collection of command-line utilities distributed with Kafka for administering clusters and producing or consuming 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.

