GELF extension for encab process manager
Project description
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: overridesthe 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54e160d053c14ebc01ba5abeec21b6612bf23b77627e694f57b5b7b656163522
|
|
| MD5 |
5e4475f0b518a41e7f9125cca2f08d99
|
|
| BLAKE2b-256 |
08566372ddc5befedde81b7b90ffa43d18dc8f9b7dbba7f124e244ee0db4c020
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddf426075d069f1bf6006457f93de64e171d234e163eee8531b69945280cc832
|
|
| MD5 |
0a846951f5b386ab38bc20f11eb142de
|
|
| BLAKE2b-256 |
a8dc091c65d48223f3a777ef8bc2c301b3d7c0c2e3f3fcde02c0a161de47d204
|