How can I restore the logs from the S3 bucket to Loki by selecting a specific time range (disaster recovery)

I have sent the logs to an S3 bucket. How can I restore the logs from the S3 bucket to Loki by selecting a specific time range?

No easy way to do this.

The index files are logically grouped by date, but chunks are not. So you either restore everything (both index files and chunks), or you’d have to parse each index files, get a list of chunks from them, then restore those chunk files. I don’t believe there is any convenient script that does this currently, but you can look at the github repo for the code that reads the index file.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.