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

Can Loki recover if there are only data files and no index files? #15928

Open
ayewwww opened this issue Jan 24, 2025 · 1 comment
Open

Can Loki recover if there are only data files and no index files? #15928

ayewwww opened this issue Jan 24, 2025 · 1 comment

Comments

@ayewwww
Copy link

ayewwww commented Jan 24, 2025

Describe the bug
A clear and concise description of what the bug is.
Can Loki recover if there are only data files and no index files?
To Reproduce
Steps to reproduce the behavior:

  1. Started Loki (SHA or version)
  2. Started Promtail (SHA or version) to tail '...'
  3. Query: {} term

Expected behavior
A clear and concise description of what you expected to happen.
After changing the storage directory in Loki, the index files in the original storage path were corrupted. Attempting to migrate back to the original path does not work, and the old data cannot be displayed.

Environment:

  • Infrastructure: [e.g., Kubernetes, bare-metal, laptop]
  • Deployment tool: [e.g., helm, jsonnet]

Image

Screenshots, Promtail config, or terminal output
If applicable, add any output to help explain your problem.

@AbdessamadEnabih
Copy link

hello @ayewwww no Loki cannot recover data if there are only data files and no index files, the index files are crucial for Loki to locate and access the stored data.

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

2 participants