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
Clone the git repository
$ git clone https://github.com/avihoo/python-kafka-logging/
Install a virtualenv
$ sudo apt-get install python-virtualenv
Create a new virtualenv
$ virtualenv python-kafka-logging-ve
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
861d2c5606f9e1ebbb46f3c7ad4b1c87fe68b30137139400684768fc606a3f3b
|
|
| MD5 |
3cd7b5944924fc127aad8791f5b7c146
|
|
| BLAKE2b-256 |
493df961fd1e4f1e2dd0f6da8bfcb559ad253ea3026c080eb4d74d755f609938
|