-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Loki should indicate if there is more logs #1252
Comments
Generally think this is a great idea. +1 to making a |
#1098 this one went stale but is related and suggest to also add line/bytes processed by Loki. |
@cyriltovena I started looking into this. It's trickier than I thought. Could you please give me some clue on which part of the code is downloading the chunk and iterating over the logs. I initially thought len(h) here https://github.com/grafana/loki/blob/master/pkg/iter/iterator.go#L73 should give the number of log lines to iterate. My understanding was wrong. Kindly give some clue to proceed on this. |
@cyriltovena Sure. Will look into other issues you mentioned. Still, |
I think we can push onto clients that if the return result count is == to the specified limit it's safe to assume there are more logs. In the rare cases where the results are exactly == to the limit they only end up making one more query which returns an empty result. |
When doing log selection using
{app="foo"}
or{app="foo"} |= "err"
the limit parameters is used to avoid to send back big responses that would not be possible to render.However it would be useful to know if we have been limited or if we there isn't more log for the given period/filter.
I think we can add a field (
resultInfo
) in the API to indicate if there is more logs, may be even the totalcount
of log returned ?WDYT ? /cc @joe-elliott @slim-bean
The text was updated successfully, but these errors were encountered: