How to download log from Loki ?
Is there any option to select by timestamp and size ?
You can use logcli with -o raw and pipe to a file.
examples:
logcli query '{ job="foo"}' --addr=http://localhost:3100 --limit=5000 --since=48h -o raw > mylog.txt
Most helpful comment
You can use logcli with
-o rawand pipe to a file.examples: