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

Bytes Unit not consistent between query and response #15052

Closed
trevorwhitney opened this issue Nov 21, 2024 · 1 comment · Fixed by #15272
Closed

Bytes Unit not consistent between query and response #15052

trevorwhitney opened this issue Nov 21, 2024 · 1 comment · Fixed by #15272
Assignees

Comments

@trevorwhitney
Copy link
Collaborator

Describe the bug
A LogQL filter on bytes requires the unit to come directly after the number, without a space. However, a logfmt query for a log line with bytes fields in it is returning the value with a space between the number and unit. Here's an example in the Grafana Ops env, for those with access, and a screenshot for those without:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Query a stream, using a formatter, with bytes fields
  2. See the results have spaces in the values
  3. Try to query with spaces in the values

Expected behavior
The format should be consistent between queries and responses

@trevorwhitney
Copy link
Collaborator Author

However we decide to fix this, the way we return these values should also work in how they can be queried, which may be changed in the resolution for #14993

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