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"
}
}
Release files for txlogstash 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| txlogstash-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| txlogstash-0.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 10.7 kB
Release files / txlogstash-0.1.0.tar.gz
| Download URL | txlogstash-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa5eab892e05560eaf88e51113e40e54a9ed6ae6e4d5a85c6f27ee3c2dc44a3c
|
|
BLAKE2b-256 checksum How to use checksums |
36cc2fdacfeeb4f7d987ffee326f222d8380c00f7d2e3c3338be4f458e725dd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / txlogstash-0.1.0-py2-none-any.whl
| Download URL | txlogstash-0.1.0-py2-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b504354882c194d896fd52fb5920c4c603429b5e19b51039c5cef175698cca06
|
|
BLAKE2b-256 checksum How to use checksums |
a0a9e1d135133a1955b3da3c46658b682740f964af8e2b1f22d05cdb4be82dc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |