A twisted log observer for logstash and similar
Project description
A twisted LogObserver sending json lines to a logstash, splunk, or any modern json capable event/log server.
The log events are tweaked in order to be properly indexed by elasticsearch. Special attention has been given to properly dump the failures.
Usage:
from txlogstash import TCPJsonLineLogObserver from twisted.logger import globalLogPublisher globalLogPublisher.addObserver(TCPJsonLineLogObserver("tcp:logger.example.com:5000")
Logstash.json:
input { tcp { port => 5000 codec => json_lines } } output { elasticsearch { hosts => "elasticsearch:9200" } }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
txlogstash-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for txlogstash-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b504354882c194d896fd52fb5920c4c603429b5e19b51039c5cef175698cca06 |
|
MD5 | 373cfbc601be3622d81271e09f309ab1 |
|
BLAKE2b-256 | a0a9e1d135133a1955b3da3c46658b682740f964af8e2b1f22d05cdb4be82dc1 |