Skip to main content

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


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)

Uploaded Source

Built Distribution

txlogstash-0.1.0-py2-none-any.whl (6.2 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page