elpylog

Python logger sending its logs to elasticsearch.


Keywords
logging, elasticsearch, bulk, udp, logstash
License
BSD-3-Clause
Install
pip install elpylog==0.1.1

Documentation

PyPI version PyPI downloads

elpylog

Python library for sending events to Elasticsearch over its bulk UDP api, in a logstash compatible fashion.

Install

git clone https://github.com/ondergetekende/elpylog.git
easy_install elpylog

Example Usage

import logging
import elpylog

el_log = elpylog.BulkUdp('127.0.0.1')

my_logger = logging.getLogger('test_logger')
my_logger.setLevel(logging.DEBUG)
my_logger.addHandler(el_log)

my_logger.debug('Hello world.')