Simple python logging handler for forwarding logs to a kafka server

taykey taykey Last update: Jun 06, 2022

Python Kafka Logging Handler

DownloadsLatest VersionLicense

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

The handler uses a logstash formatter.

Installing

$ pip install python_kafka_logging

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/taykey/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 <at> taykey <dot> com.

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

Tags:

PRAGMA foreign_keys = off; BEGIN TRANSACTION; COMMIT TRANSACTION; PRAGMA foreign_keys = on;

Subscribe to our newsletter