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 details)
Built Distribution
File details
Details for the file txlogstash-0.1.0.tar.gz
.
File metadata
- Download URL: txlogstash-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5eab892e05560eaf88e51113e40e54a9ed6ae6e4d5a85c6f27ee3c2dc44a3c |
|
MD5 | 5548134ff5bb8ad8e50cc83dd5ce052e |
|
BLAKE2b-256 | 36cc2fdacfeeb4f7d987ffee326f222d8380c00f7d2e3c3338be4f458e725dd6 |
File details
Details for the file txlogstash-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: txlogstash-0.1.0-py2-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b504354882c194d896fd52fb5920c4c603429b5e19b51039c5cef175698cca06 |
|
MD5 | 373cfbc601be3622d81271e09f309ab1 |
|
BLAKE2b-256 | a0a9e1d135133a1955b3da3c46658b682740f964af8e2b1f22d05cdb4be82dc1 |