GELF Plugin for Encab
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 ofHTTP,HTTPS,UDP,TCP,TLSthe GELF Protocol of the associated Graylog inputhost: String Graylog input host or IP addressport: Integer, default=12201 Graylog portoptional_fields: Map optional fields added to every log record
Protocol specific properties
HTTP
path: String, default="/gelf" path of the HTTP inputcompress: Boolean, default=True if true, compress log messages before sending them to the servertimeout: 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 requiredca_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 serverkeyfile: 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,trueor1overridesenabledsetting in configuration file -
GRAYLOG_PROTOCOL: one ofHTTP,HTTPS,UDP,TCP,TLSoverrides the protocol for the handlerdefault. -
GRAYLOG_HOST: overrides the the host name or ip address for the handlerdefaultof the associated Graylog Input. -
GRAYLOG_PORT: overrides the port for the handlerdefaultof the associated Graylog Input. -
GRAYLOG_OPTIONAL_FIELDS: overrides optional fields for the handlerdefault. 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)
| File | Size | Uploaded | |
|---|---|---|---|
| encab_gelf-0.0.6.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|