Skip to main content

GELF Plugin for Encab

image image image

Redirects encab logging to Graylog using the GELF protocol.

[!WARNING] This module is still under construction and not ready for production use!

Installation

pip install encab-gelf

Configuration

See encab documentation for an introduction to encab and encab configuration.

Example GELF Extension configuration

extensions:
    encab_gelf:
        module: encab_gelf
        enabled: true
        settings:
            handlers:
                default:
                    protocol: HTTP
                    host: localhost
                    port: 11201
                    optional_fields:
                        localname: encab

Properties

  • protocol: String, One of HTTP, HTTPS, UDP, TCP, TLS the GELF Protocol of the associated Graylog input
  • host: String Graylog input host or IP address
  • port: Integer, default=12201 Graylog port
  • optional_fields: Map optional fields added to every log record

Protocol specific properties

HTTP

  • path: String, default="/gelf" path of the HTTP input
  • compress: Boolean, default=True if true, compress log messages before sending them to the server
  • timeout: Float, default=5.0 amount of seconds that HTTP client should wait before it discards the request if the server doesn't respond

UDP

  • chunk_size: Integer, default=1300 maximum length of the message. If log length exceeds this value, it splits into multiple chunks.

HTTPS

  • validate: Boolean, default=False if true, validate server certificate. In that case ca_certs are required
  • ca_certs: String path to CA bundle file. For instance, on CentOS it would be '/etc/pki/tls/certs/ca-bundle.crt'

TLS

  • certfile: String path to the certificate file that is used to identify ourselves to the server
  • keyfile: String path to the private key. If the private key is stored with the certificate, this parameter can be ignored.

Environment variables

  • GRAYLOG_ENABLED: True, true or 1 overrides enabled setting in configuration file

  • GRAYLOG_PROTOCOL: one of HTTP, HTTPS, UDP, TCP, TLS overrides the protocol for the handler default.

  • GRAYLOG_HOST: overridesthe the host name or ip address for the handler default of the associated Graylog Input.

  • GRAYLOG_PORT: overrides the port for the handler default of the associated Graylog Input.

  • GRAYLOG_OPTIONAL_FIELDS: overrides optional fields for the handler default. The value mujst be a JSON encoded object.

    Example: {"localname": "encab"}

Further information

Download files

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

Source Distribution

encab_gelf-0.0.5.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

encab_gelf-0.0.5-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file encab_gelf-0.0.5.tar.gz.

File metadata

  • Download URL: encab_gelf-0.0.5.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for encab_gelf-0.0.5.tar.gz
Algorithm Hash digest
SHA256 54e160d053c14ebc01ba5abeec21b6612bf23b77627e694f57b5b7b656163522
MD5 5e4475f0b518a41e7f9125cca2f08d99
BLAKE2b-256 08566372ddc5befedde81b7b90ffa43d18dc8f9b7dbba7f124e244ee0db4c020

See more details on using hashes here.

File details

Details for the file encab_gelf-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: encab_gelf-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for encab_gelf-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf426075d069f1bf6006457f93de64e171d234e163eee8531b69945280cc832
MD5 0a846951f5b386ab38bc20f11eb142de
BLAKE2b-256 a8dc091c65d48223f3a777ef8bc2c301b3d7c0c2e3f3fcde02c0a161de47d204

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page