Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A python logging handler which can send logs to elasticsearch's bulk UDP.

ondergetekende/elpylog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.')

About

A python logging handler which can send logs to elasticsearch's bulk UDP.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages