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

Logs disapear after some time #11274

Open
YaPlusDePile opened this issue Nov 20, 2023 · 5 comments
Open

Logs disapear after some time #11274

YaPlusDePile opened this issue Nov 20, 2023 · 5 comments

Comments

@YaPlusDePile
Copy link

Describe the bug
Hello,
After some time, generaly 1h 30m (depends of quantity of logs) the logs disapear from loki.
To show you, i've activated the auto refresh on every 5 seconds on the 'explore' tab of Grafana and i've recorded my screen:

I’ve monitor the size of the data folder during the log disappear:
image

The last result of query before logs disappear:
image

And a few secods later:
image

I've tried with V2.8.0 and it works as expected

To Reproduce
Steps to reproduce the behavior:

  1. Install Loki 2.9.0 Via docker-compose
  2. Start logging of container for example
  3. Regulary query for logs
  4. After a time, the logs disapear

Expected behavior
The logs doesn't have to disapear

Environment:

Screenshots, Promtail config, or terminal output
The logs file of loki container at the moment when logs has disapear on previous screenshots:
docker-logs.json

To more details you can go to Loki Forum: Logs disappear from Loki after some time

And if you need more details, do not hesitate to ask me.

@waney316
Copy link

waney316 commented Dec 3, 2023

hello, I get the same issue,my loki version 2.9.2, when I specify a time range of 6 hours, I can only see logs from the last hour or two.
image

@zhao-chung
Copy link

怎么解决一段时间后,grafana 展示日志出现
微信图片_20231205144919
,提示文件不存在,该怎么解决。

@summed
Copy link

summed commented Dec 7, 2023

#11301 Is this related?

@exabugs
Copy link

exabugs commented Jan 13, 2024

#8023 Is this related?

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

6 participants