https://github.com/imotai/ktoolkit
devops kafka topics like files with kls, ktail, khead and kecho
https://github.com/imotai/ktoolkit
devops kafka terminal tools
Last synced: 6 months ago
JSON representation
devops kafka topics like files with kls, ktail, khead and kecho
- Host: GitHub
- URL: https://github.com/imotai/ktoolkit
- Owner: imotai
- License: apache-2.0
- Created: 2021-12-13T09:31:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-15T08:01:00.000Z (about 4 years ago)
- Last Synced: 2025-03-02T11:49:24.097Z (11 months ago)
- Topics: devops, kafka, terminal, tools
- Language: Rust
- Homepage:
- Size: 562 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ktookkit (kafka toolkit)

# Getting Started
## build
```
cargo build
```
## usage
```
# show all topics
kls localhost:9092
# | topics | partitions
---+-------------------+------------
1 | quickstart-topic | 1
# send a json object
kecho localhost:9092 quickstart-topic '{"msg":"hello world!"}'
# scan all message
khead localhost:9092 quickstart-topic
quickstart-topic:0@5:{"msg":"hello world!"}
# tail topic
ktail localhost:9092 quickstart-topic
```
# thanks
* https://github.com/phsym/prettytable-rs
* https://github.com/kafka-rust/kafka-rust
# other kafka tools
* [kcat](https://github.com/edenhill/kcat)