Skip to main content

Log handler meant for logstash

Project description

This library is provided to allow standard python logging to stream JSON logs to logstash.



pip install logstash_handler



python install


Json outputs are provided by the LogstashFormatter logging formatter.

import logging
from logstash_formatter import LogstashFormatter
from logstash_handler import LogstashHandler

logger = logging.getLogger()
handler = LogstashHandler('localhost', 5000, ssl=False)
formatter = LogstashFormatter()


The LogstashHandler takes the following named parameters:

  • host: host to connect to
  • port: host to connect to
  • ssl: boolean indicating if the stream should be encrypted. Default is True
  • keyfile: The path to the encrypting key
  • certfile: The path to the encrypting certificate

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for logstash_handler, version 0.1.0
Filename, size & hash File type Python version Upload date
logstash_handler-0.1.0.tar.gz (2.1 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page