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: overrides the 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

Metadata

Release files for encab-gelf 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for encab-gelf 0.0.6
File Size Uploaded
encab_gelf-0.0.6.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for encab-gelf 0.0.6
File Interpreter ABI Platform
encab_gelf-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / encab_gelf-0.0.6.tar.gz

Download URL encab_gelf-0.0.6.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0758b904c03af1ecea28c9b132c4ef32ee7ec720a2e3879a23cc1e11aba5dcb5
BLAKE2b-256 checksum
How to use checksums
d85da8185751edfa0913ba1be087282ac7c89b22b51c8fa252055dd73adb6285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release files / encab_gelf-0.0.6-py3-none-any.whl

Download URL encab_gelf-0.0.6-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d2848650b203796791002144c673e5c45e42f6e95cfee965ca3dbd36581569
BLAKE2b-256 checksum
How to use checksums
6fb1550347919e3568f3b3cd432b43442913963a66c1ff4c02c89dfca04bac47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page