collect kafka messages from multiple topics
Project description
kafka-collector
collect kafka messages from multiple topics
Installation
pip install kafka_collector
Usage
$ kafka-collector -h
usage: kafka-collector [-h] [-v] [-t TOPICS] [-b BOOTSTRAP_SERVER] [-g GROUP]
[-o OUTPUT] [-c CAPTURE_DIR] [-m {cli,service}]
[-p PORT]
[--log-level {debug,info,warning,error,critical}]
[--debug]
collect kafka messages from multiple topics
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-t, --topics TOPICS comma separated list of kafka topics to be listened to
-b, --bootstrap-server BOOTSTRAP_SERVER
kafka bootstrap server (default: localhost:9092)
-g, --group GROUP consumer group id (default: random uuid)
-o, --output OUTPUT output file path, use '-' for stdout (default: stdout)
-c, --capture-dir CAPTURE_DIR
capture directory for service mode (default:
/tmp/kafka-collector)
-m, --mode {cli,service}
run mode: cli or service (default: cli)
-p, --port PORT service port for service mode (default: 8080)
--log-level {debug,info,warning,error,critical}
logging level (default: info)
--debug enable debug logging (shortcut for --log-level debug)
Environment Variables
KAFKA_TOPICS- comma separated list of topicsKAFKA_BOOTSTRAP_SERVER- bootstrap server addressKAFKA_GROUP- consumer group idCOLLECTOR_CAPTURE_DIR- capture directory for service modeCOLLECTOR_MODE- run mode (cli or service)COLLECTOR_SERVICE_PORT- service port (must be integer)LOG_LEVEL- logging level
Documentation
- CLI Mode - Default mode for streaming messages to stdout or file
- Service Mode - HTTP service mode with REST API for capture management
Deployment Examples
- Docker Compose - Run with Docker Compose
- Kubernetes - Deploy to Kubernetes
Links
- https://pypi.org/project/kafka_collector/
- https://github.com/siakhooi/kafka-collector
- https://sonarcloud.io/project/overview?id=siakhooi_kafka-collector
- https://qlty.sh/gh/siakhooi/projects/kafka-collector
Badges
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kafka_collector-1.0.0.tar.gz
(12.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kafka_collector-1.0.0.tar.gz.
File metadata
- Download URL: kafka_collector-1.0.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.3 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08538829d679c8aa7e0d9547e6d2633e3e497f29dbf6dd370afd70057cbf9ce3
|
|
| MD5 |
b896b1789bf8d4e101a855bf5d8b7aa1
|
|
| BLAKE2b-256 |
48f01517ab0f2639d1dfe106a5969b49c3f06a66bbe6efbd4445ce2767130a63
|
File details
Details for the file kafka_collector-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kafka_collector-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.14.3 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c54d712fbba805000cfb144d5b3092533a4e16ab4fd78584bac604290ebf06bc
|
|
| MD5 |
3f919473d8ee8dde201bab5429c30366
|
|
| BLAKE2b-256 |
0bb55071f980a450c8543a863009fefe47de7991817adccc1012bd8fc6614af4
|