Skip to content

Simple python logging handler for forwarding logs to a kafka server

License

Notifications You must be signed in to change notification settings

avihoo/python-kafka-logging

 
 

Repository files navigation

Python Kafka Logging Handler

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

About

Simple python logging handler for forwarding logs to a kafka server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%