You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imported some logs which were logged 4 days ago, and I hoped to query the logs immediately after I imported. I read this blog
According to my understanding, the logs of 4 days ago I justed imported has not yet be flushed, and with the default 'query_ingesters_within=2h' settings, the query searching logs for thoese logs will directly go to the store, which would match nothing.
SoI set query_ingesters_within=168h and the query (searching logs of 4 days ago)should be executed on the ingester (where the logs data exist currently). But still I return nothing. Only If I set both max_chunks_age= 168h and query_ingesters_within= 168h, It would return data.
Expected behavior
With setting query_ingesters_within= 168h, loki should return historical data immediately.
Environment:
Infrastructure: bare-metal
Deployment tool: mannully
Screenshots, Promtail config, or terminal output
The text was updated successfully, but these errors were encountered:
Describe the bug
query_ingesters_within didn't work as expected
To Reproduce
Steps to reproduce the behavior:
reject_old_samples: false
,query_ingesters_within=168h',
max_chunk_age=2h`{job="training"} term
I imported some logs which were logged 4 days ago, and I hoped to query the logs immediately after I imported. I read this blog
According to my understanding, the logs of 4 days ago I justed imported has not yet be flushed, and with the default 'query_ingesters_within=2h' settings, the query searching logs for thoese logs will directly go to the store, which would match nothing.
SoI set query_ingesters_within=168h and the query (searching logs of 4 days ago)should be executed on the ingester (where the logs data exist currently). But still I return nothing. Only If I set both
max_chunks_age= 168h
andquery_ingesters_within= 168h
, It would return data.Expected behavior
With setting
query_ingesters_within= 168h
, loki should return historical data immediately.Environment:
Screenshots, Promtail config, or terminal output
The text was updated successfully, but these errors were encountered: