How to download logs beyond the 1k line limit?

Hey. I’m trying to examine about 20 minutes of logs in a text editor. The download “txt” option only downloads up to 1k lines of logs. Is there a way to download all 20 minutes of logs?

Thanks!

2 Likes

For each query configuration, you can define a higher limit of lines than the default limit of the datasource, but this is then limited by the Loki configuration and its max_entries_limit. When trying with more, you will see an error like:

max entries limit per query exceeded, limit > max_entries_limit (10000 > 5000)

If you do not want to increase those limits, then on the right side of the logs, you can click on “Older logs”, and it will load another chunk of logs with the same limit, adding them to the already loaded ones. Once you have all of them, you can also download all of them at once.

I have tried now with a limit of 5000 lines, loading a second time and downloading the txt file with the 10000 lines. I have also tried with over 25000 lines, and the browser got a bit blocked.