Skip to content
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

Open
godric7 opened this issue Jul 27, 2017 · 1 comment
Open

Preserve JSON Number formating #52

godric7 opened this issue Jul 27, 2017 · 1 comment

Comments

@godric7
Copy link

godric7 commented Jul 27, 2017

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 👍

@maxekman
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants