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

/detected_fields api returns different values based on frontend encoding #14106

Closed
trevorwhitney opened this issue Sep 10, 2024 · 0 comments · Fixed by #14112
Closed

/detected_fields api returns different values based on frontend encoding #14106

trevorwhitney opened this issue Sep 10, 2024 · 0 comments · Fixed by #14112
Assignees

Comments

@trevorwhitney
Copy link
Collaborator

Describe the bug
When the frontend is configured to use protobuf encoding, the detected fields response return null if no parsers are found (ie. for structured metadata). When the frontend is configured to use json encoding, the detected fields response returns an empty array [] if no parsers are found.

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki (k218)
  2. Ingest logs
  3. Query detected fields for ingested logs (make sure the response will include some structured metadata fields)

Expected behavior
The value should be the same for either encoding type.

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