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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

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

Hashes for txlogstash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa5eab892e05560eaf88e51113e40e54a9ed6ae6e4d5a85c6f27ee3c2dc44a3c
MD5 5548134ff5bb8ad8e50cc83dd5ce052e
BLAKE2b-256 36cc2fdacfeeb4f7d987ffee326f222d8380c00f7d2e3c3338be4f458e725dd6

See more details on using hashes here.

File details

Details for the file txlogstash-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for txlogstash-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b504354882c194d896fd52fb5920c4c603429b5e19b51039c5cef175698cca06
MD5 373cfbc601be3622d81271e09f309ab1
BLAKE2b-256 a0a9e1d135133a1955b3da3c46658b682740f964af8e2b1f22d05cdb4be82dc1

See more details on using hashes here.

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