How Can I Download Loki Logs?

Anyone know if we can download logs from Loki? say if we ingest all the Application logs to Loki, is there an easy way to download them?
I am using s3 as a storage object.

I do not understand your question. It seems like you are saying that you first want to feed some logs into Loki and then get those same logs from Loki afterward? If you have the logs in the first place, why do you need to download them again?

It seems to me like a valid scenario - e.g. you want backup the togs or you want to try ingest already existing logs to another log management system.

I have the same issue.
My application shoots some 50k log entries daily, and I got a service request where I need to compare log entries from a period of time with some customer data.

In this scenario, I sit there clicking older logs, download logs, older logs, download logs… over and over and will probably never be done. I need a way to download a month at a time for example, or at least the maximum amount of entries that fit in a text file at a time. 1k lines at a time can be too few sometimes

What about logcli?
You could create a query that pulls the log and writes them to a file as json. Obviously they are not “the same” logs as before, but enriched by loki.

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