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

Large hex number parsed as "Infinity" #14

Closed
bboreham opened this issue Oct 29, 2018 · 0 comments · Fixed by #15
Closed

Large hex number parsed as "Infinity" #14

bboreham opened this issue Oct 29, 2018 · 0 comments · Fixed by #15

Comments

@bboreham
Copy link
Contributor

Given this line as input:

level=event ts=2018-10-29T14:52:51.473589976Z msg="flush chunks" userID=11463 reason=2 numChunks=1 firstTime=1540821644.498 fp=524157e785101116 series="node_cpu{_weave_service=\"prom-node-exporter\",cpu=\"cpu5\",instance=\"10.132.0.4:9100\",job=\"kubernetes-pods\",kubernetes_namespace=\"weave\",kubernetes_pod_name=\"prom-node-exporter-c97bk\",mode=\"system\",node=\"gke-cluster-1\"}" queue=8

fp comes out as Infinity. I suspect this is because it matches the float regexp, but when parsed as a float it is too big.

Is it possible to have the logfmt parser read this field as a string?

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

Successfully merging a pull request may close this issue.

1 participant