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

Query with a last empty equality label are not returning consistent response #592

Closed
cyriltovena opened this issue May 16, 2019 · 0 comments · Fixed by #594 or #595
Closed

Query with a last empty equality label are not returning consistent response #592

cyriltovena opened this issue May 16, 2019 · 0 comments · Fixed by #594 or #595
Labels
component/loki type/bug Somehing is not working as expected

Comments

@cyriltovena
Copy link
Contributor

cyriltovena commented May 16, 2019

Query like this :

{app="prometheus",level=""}

Returns most of the time: {}

and sometimes it returns result but I would expect no label lvl.

{
"streams": [{
	"labels": "logs{app=\"prometheus\",  stream=\"stderr\"}",
	"entries": [{
		"ts": "2019-05-16T02:49:36.970126886Z",
		"line": "2019/05/16 02:49:36 Watching directory: \"/etc/config\"\n"
	}, {
		"ts": "2019-05-16T02:49:35.409789653Z",
		"line": "I0516 02:49:35.409635       1 main.go:211] Starting metrics server: 0.0.0.0:8080\n"
		}, {
		"ts": "2019-05-16T02:49:46.63968882Z",
		"line": "level=info ts=2019-05-16T02:49:46.639284922Z caller=cluster.go:587 component=cluster msg=\"gossip settled; proceeding\" elapsed=10.002738551s\n"
		},

If I filter with: {app="prometheus",level="info"}
I can verify that the entry for 2019-05-16T02:49:46.63968882Z has the label level and should have not been returned previously

{
"labels": "logs{app=\"prometheus\",  level=\"info\", stream=\"stderr\"}",
"entries": [ {
	"ts": "2019-05-16T02:49:46.63968882Z",
	"line": "level=info ts=2019-05-16T02:49:46.639284922Z caller=cluster.go:587 component=cluster msg=\"gossip settled; proceeding\" elapsed=10.002738551s\n"
}, 
This was referenced May 16, 2019
@chaudum chaudum added the type/bug Somehing is not working as expected label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/loki type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants