-
Notifications
You must be signed in to change notification settings - Fork 133
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
Preserve JSON Number formating #52
Comments
If anyone could do a PR I would be happy to merge it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When logging JSON numbers from docker, ex:
{"value":1000000}
the value is converted to scientific notation once it's gone through the Marshall/Unmarshalling. ie:{"value":1e+06}
While this is not technically incorrect, it prevents us from looking for specific values in the logs (ids) without manually converting them to scientific notation.
I tried to come up with a fix myself (https://stackoverflow.com/a/22346593/8125689 looks promising), but while the issue definitely happens with the
Bekt/logspout-logstash
image, I wasn't able to reproduce it in a test case 😕PS: Loads of thanks for this project, we've been using it on production server for a while as part of our monitoring system and it does a pretty good job 👍
The text was updated successfully, but these errors were encountered: