KCAT(1)
๐ธ NAME ๐ธ
kcat โ generic producer and consumer for Apache Kafka ๐
so like, this is kcat, section 1 of the General Commands Manual (that's the "KCAT(1)" up top, bestie ๐), and it's a generic producer and consumer for Apache Kafka. that's the whole vibe. โจ
๐ SYNOPSIS ๐
okay so here's exactly how you call her, no cap:
kcat -C | -P | -L -t topic [-p partition] -b brokers [, ...] [-D delim]
[-K delim] [-c cnt] [-X list] [-X prop=val] [-X dump]
[-d dbg [, ...]] [-q] [-v] [-Z] [specific options]
kcat -C [generic options] [-o offset] [-e] [-O] [-u] [-J] [-f fmtstr]
kcat -P [generic options] [-z snappy | gzip] [-p -1] [file [...]]
kcat -L [generic options] [-t topic]
like yes, that's a lot of brackets. she contains multitudes. ๐
๐ฆ DESCRIPTION ๐ฆ
okay so kcat is a generic non-JVM producer and consumer for Apache Kafka 0.8 โ think of it as a netcat for Kafka. literally. that's the pitch. ๐ซถ
In producer mode ( -P ), kcat reads messages from stdin, delimited with a configurable delimeter, and produces them to the provided Kafka cluster, topic and partition. it's giving "type stuff, ship stuff". ๐ค
In consumer mode ( -C ), kcat reads messages from a topic and partition and prints them to stdout using the configured message delimiter. she's reading the room, and the room is a Kafka topic. ๐ฅ
If neither-Pnor-Care specified,kcatattempts to figure out the mode automatically based on stdin/stdout tty types. she's psychic like that. ๐ฎ
kcat also features a metadata list mode ( -L ), to display the current state of the Kafka cluster and its topics and partitions. it's the "let me see what's going on in here" mode. ๐
๐ SEE ALSO ๐
For a more extensive help and some simple examples, run kcat with the -h flag. fr fr, that's where the good stuff lives. ๐
this page came to you courtesy of Debian, dated December 09, 2014 โ like, vintage, but make it iconic. mwah, go produce something ๐โจ๐
๐ฆ where this page comes from
- debian bookworm: kcat 1.7.1-2 ยท BSD-2-Clause
- debian trixie: kcat 1.7.1-3 ยท BSD-2-Clause
- epel 10: kcat 1.7.1-1.el10_1 ยท BSD-2-Clause
- epel 9: kcat 1.7.1-1.el9 ยท BSD-2-Clause
- fedora 43: kcat 1.7.1-8.fc43 ยท BSD-2-Clause
- fedora 44: kcat 1.7.1-9.fc44 ยท BSD-2-Clause
- ubuntu noble: kcat 1.7.1-3 ยท BSD-2-Clause
- ubuntu questing: kcat 1.7.1-3
- ubuntu resolute: kcat 1.7.1-3build1 ยท BSD-2-Clause
- ubuntu stonking: kcat 1.7.1-3build1 ยท BSD-2-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms