-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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_ingesters_within Config not right may cause query result left out logs #6043
Comments
I guess it's because the stream produces logs slow and the If that's the problem, should we do some check to the config values and give some warning? |
Yes, you got it right. The |
Hi @sandeepsukhani , It seems I met the similar issue, I am running Loki in K8S with SSD mode, the
When I tried to query it from Grafana, it gave me the error like below: But if I ingested the log snippet generated just now, everything looks normal:
Per the doc:
So it means if the query time range (7 days) is out of the scope of query_ingesters_within(3h), Loki will not search ingesters at all but the backend storage. However, since it is still in the window of max_chunk_age (2h) or chunk_idle_period (30min) , the logs in memory is not flushed to storage yet, then I failed to search the logs from either memory or storage. Once I set the Please correct me if there is any misunderstanding. Thanks. |
Describe the bug
I have a log line which have several labels like: application=myapp, source=error.log, and it contains some keywords:
When choose only labels without pipeline, I can query it out. But when add pipeline with keyword contains in the log, the result is empty.
To Reproduce
Steps to reproduce the behavior:
write
component with:querier
andquery-frontend
component with:1st:
{application="myapp",source="error.log"}
2nd:
{application="myapp",source="error.log"} |= "SQLIntegrityConstraintViolationException"
Expected behavior
Expect both 2 queries returns the log line, but only the 1st did. After about 2 hours letter, both of them can return the log line.
Environment:
The text was updated successfully, but these errors were encountered: