Skip to main content

Stream supervisord logs to a syslog instance

Project description

A [supervisor] plugin to stream events to an external Syslog instance (for example, Logstash).

Installation

Python 2.7 or Python 3.2+ is required.

` pip install supervisor-logging `

Note that supervisor itself does not yet work on Python 3, though it can be installed in a separate environment (because supervisor-logging is a separate process).

Usage

The Syslog instance to send the events to is configured with the environment variables:

  • SYSLOG_SERVER

  • SYSLOG_PORT

  • SYSLOG_PROTO

Add the plugin as an event listener:

` [eventlistener:logging] command = supervisor_logging events = PROCESS_LOG `

Enable the log events in your program:

` [program:yourprogram] stdout_events_enabled = true stderr_events_enabled = true `

[supervisor]: http://supervisord.org/

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

supervisor-logging-0.0.9.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file supervisor-logging-0.0.9.tar.gz.

File metadata

File hashes

Hashes for supervisor-logging-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d602f6700c006ff22a4ea742c1b3d075af412dc35b1beeda20c94ac2f41917a2
MD5 05dc40e5b966f6ad8f038f3524e1701d
BLAKE2b-256 f09e2171863fc1942be526d626af34d0d7e022cb5b1b7799ac1a25d78af99815

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