Skip to main content

Simple python logging handler for forwarding logs to a kafka server.

Project description

Downloads Latest Version License

Simple python logging handler for forwarding logs to a kafka server.

The handler uses a logstash formatter.

Installing

$ pip install python-kafka-logger

How to use

Example for using the handler within a native logging.conf file

example/logging.conf

Get the project

  1. Clone the git repository

$ git clone https://github.com/avihoo/python-kafka-logging/
  1. Install a virtualenv

$ sudo apt-get install python-virtualenv
  1. Create a new virtualenv

$ virtualenv python-kafka-logging-ve
  1. Install project’s requirements

$ python-kafka-logging-ve/bin/pip install -r requirements.txt

Reporting Issues

If you have suggestions, bugs or other issues specific to this library, file them here or contact me at avihoo.mamka <at> gmail <dot> com.

keywords: python, logging, handler, example, kafka, logs, logstash, formatter

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

python-kafka-logger-0.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file python-kafka-logger-0.5.tar.gz.

File metadata

  • Download URL: python-kafka-logger-0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.5.3 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

File hashes

Hashes for python-kafka-logger-0.5.tar.gz
Algorithm Hash digest
SHA256 861d2c5606f9e1ebbb46f3c7ad4b1c87fe68b30137139400684768fc606a3f3b
MD5 3cd7b5944924fc127aad8791f5b7c146
BLAKE2b-256 493df961fd1e4f1e2dd0f6da8bfcb559ad253ea3026c080eb4d74d755f609938

See more details on using hashes here.

Supported by

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