Skip to content

[Querier] Some JSON appears corrupted by label detection #17267

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

Open
kelnage opened this issue Apr 16, 2025 · 0 comments
Open

[Querier] Some JSON appears corrupted by label detection #17267

kelnage opened this issue Apr 16, 2025 · 0 comments

Comments

@kelnage
Copy link
Contributor

kelnage commented Apr 16, 2025

Describe the bug
When running a query over JSON data that, when parsed, have detected labels that collide with existing index labels, the log lines will appear to be modified such that the JSON key is replaced with key_extracted. These additional 10 characters overwrite the next 10 characters in the log line, invariably causing the JSON to fail to parse.

The behaviour is not consistent when the query is run repeatedly, so sometimes these keys will not be corrupted and sometimes they will.

To Reproduce
Steps to reproduce the behavior: provided via internal Slack

Expected behavior
The log line to be returned as it was ingested into Loki, and successfully parsed by the JSON parser.

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: jsonnet

Screenshots, Promtail config, or terminal output
Provided via internal Slack

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

1 participant