grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.97k stars 3.46k forks source link

Bytes Unit not consistent between query and response #15052

Open trevorwhitney opened 16 hours ago

trevorwhitney commented 16 hours ago

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