You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
to define version specific "timestamp" and "level" formats, but does not seem to include a "version" field into final JSON message.
(and since all custom field are prefixed with "_" there is also no (easy) way to manually provide "version" field)
perhaps something like this:
public static final String FIELD_VERSION = "version";
...
if (GELF_VERSION_1_1.equals(version)) {
hasFields = writeIfNotEmpty(out, hasFields, FIELD_VERSION, GELF_VERSION_1_1);
}
or perhaps more future-proof:
public static final String FIELD_VERSION = "version";
...
if (!isEmpty(version) && !GELF_VERSION_1_0.equals(version)) {
hasFields = writeIfNotEmpty(out, hasFields, FIELD_VERSION, version);
}
in case GELF_VERSION_1_0 must not include the "version" field
The text was updated successfully, but these errors were encountered:
GELF message format:
https://docs.graylog.org/en/latest/pages/gelf.html
defines:
https://github.com/mp911de/logstash-gelf/blob/main/src/main/java/biz/paluch/logging/gelf/intern/GelfMessage.java
des use
to define version specific "timestamp" and "level" formats, but does not seem to include a "version" field into final JSON message.
(and since all custom field are prefixed with "_" there is also no (easy) way to manually provide "version" field)
perhaps something like this:
or perhaps more future-proof:
in case GELF_VERSION_1_0 must not include the "version" field
The text was updated successfully, but these errors were encountered: