Skip to main content

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 topics
  • KAFKA_BOOTSTRAP_SERVER - bootstrap server address
  • KAFKA_GROUP - consumer group id
  • COLLECTOR_CAPTURE_DIR - capture directory for service mode
  • COLLECTOR_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

Links

Badges

GitHub GitHub last commit GitHub tag (latest by date) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub top language GitHub language count GitHub repo size GitHub code size in bytes

Workflow workflow workflow

Release GitHub release (latest by date) GitHub all releases GitHub Release Date

Quality-Qlty Maintainability Code Coverage

Quality-Sonar Code Smells Duplicated Lines (%) Bugs Vulnerabilities Technical Debt Maintainability Rating Security Rating Reliability Rating Quality Gate Status Lines of Code Coverage Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (long format)

Wise visitors

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kafka_collector-1.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

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

Hashes for kafka_collector-1.0.0.tar.gz
Algorithm Hash digest
SHA256 08538829d679c8aa7e0d9547e6d2633e3e497f29dbf6dd370afd70057cbf9ce3
MD5 b896b1789bf8d4e101a855bf5d8b7aa1
BLAKE2b-256 48f01517ab0f2639d1dfe106a5969b49c3f06a66bbe6efbd4445ce2767130a63

See more details on using hashes here.

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

Hashes for kafka_collector-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c54d712fbba805000cfb144d5b3092533a4e16ab4fd78584bac604290ebf06bc
MD5 3f919473d8ee8dde201bab5429c30366
BLAKE2b-256 0bb55071f980a450c8543a863009fefe47de7991817adccc1012bd8fc6614af4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page