-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GELF v1.1 compatibility #5
Comments
That is not related to GELF but to ElasticSearch. There is a mapping per index that is created dynamically: When a field is seen first, the field keeps the type for that index. That is why you cannot index Strings after you indexed Numbers already. The deprecated fields are also not at all considered set when processing the message. |
leaving this ticket open to @bzikarsky though ;) |
@lennartkoopmann: Does 0.20 support GELFv1.0 or do we need to add support for 1.1 ASAP? Regarding the "null"-issue: Is this something library-related? https://github.com/bzikarsky/gelf-php/blob/master/src/Gelf/Message.php#L270 drops any real null-like values. But gelf-php cannot handle errorneous strings. |
@bzikarsky There is a issue for the NULL values in JSON: |
But gelf-php does not send any NULLs? |
@bzikarsky This library does not seem to have problem about this. |
👍 |
@lennartkoopmann commented in IRC: all as in 1.0, 1.1, and the upcoming 1.2 => We are not on a clock for this. Message validation and serialization/transformationen need a major refactoring in the light of multiple GELF specification versions. |
This is a very simple implementation without breaking BC; should be refactored with 2.0
1.2 did not happen - 1.1 got some ammendments. I will close this issue, and add a refactoring issue to 2.0. |
This library does not work when using against a Graylog2 v0.20 server, because the GELF specification has changed.
http://graylog2.org/gelf#specs
These fields are now deprecated: facility, line, file
Also, there seems to be a error when elasticsearch tries to index fields, that do not conform the the spec. For example, if "line" has the string value "null", the message will be dropped.
The text was updated successfully, but these errors were encountered: