Skip to main content

Gunicorn centralized logging

Project description

Centralized logging for gunicorn ussing ELK besed on (python-logstash-async)[https://github.com/eht16/python-logstash-async].

Environment vars

  • LOGSTASH_HOST: Logstash host.

  • LOGSTASH_PORT: Logstash port.

  • LOGSTASH_DB_PATH: The path to the file containing queued events. Use None to use a in-memory cache.

  • LOGSTASH_TRANSPORT: Callable or path to a compatible transport class.

  • LOGSTASH_SSL_ENABLE: Callable or path to a compatible transport class.

  • LOGSTASH_SSL_VERIFY: Should the server’s SSL certificate be verified?

  • LOGSTASH_KEYFILE: The path to client side SSL key file.

  • LOGSTASH_CERTFILE: The path to client side SSL key file.

  • LOGSTASH_CA_CERTS: The path to the file containing recognized CA certificates.

  • LOGSTASH_ENABLE: Flag to enable log processing. (default is True, disabling might be handy for local testing, etc.)

  • LOGSTASH_EVENT_TTL: Amount of time in seconds to wait before expiring log messages in the database. (Given in seconds. Default is None, and disables this feature)

  • LOGSTASH_ENCODING:

  • LOGSTASH_MESSAGE_TYPE:

  • LOGSTASH_MESSAGE_SUBTYPE:

  • LOGSTASH_EXTRA:

Using Django settings

Environment vars:

  • WORKSPACE: Django base directory.

  • DJANGO_SETTINGS_MODULE: Django settings module.

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

gunicorn-logging-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file gunicorn-logging-0.1.0.tar.gz.

File metadata

File hashes

Hashes for gunicorn-logging-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a85201bf6ed59affd2475111e69f77e92faa09ca44df6ac450327c65c26a46c9
MD5 822f916dc9735747280291530155e0d6
BLAKE2b-256 5ec518e7f1569d7fc2fd82e34cec89fa861e84b6c2ed73709899b25733503c6d

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