-
Notifications
You must be signed in to change notification settings - Fork 54
GELF Encoder
Frank Denis edited this page Sep 23, 2015
·
1 revision
The JSON (GELF) encoder rewrites parsed message as JSON objects, fully compatible with the GELF specification.
This encoder can be selected in the output
section of the configuration file:
[output]
type = "gelf"
Before the rewrite, additional key/value pairs can be added, or existing entries can be overridden. This can be used to add authentication tokens that have to be kept secret from client applications.
A [output.gelf_extra]
section can be present in the configuration file to enable this feature:
[output.gelf_extra]
x-auth-token = "deadbeef"
another-token = "secret"
Values for these extra fields are assumed to be strings.