Skip to main content

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)

Source distribution for txlogstash 0.1.0
File Size Uploaded
txlogstash-0.1.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for txlogstash 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page