Loki: Download Logs from Loki

Created on 25 May 2020  路  1Comment  路  Source: grafana/loki

How to download log from Loki ?
Is there any option to select by timestamp and size ?

Most helpful comment

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

>All comments

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
Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylos101 picture kylos101  路  4Comments

negbie picture negbie  路  3Comments

pandey-adarsh147 picture pandey-adarsh147  路  4Comments

naughtyGitCat picture naughtyGitCat  路  3Comments

setevoy2 picture setevoy2  路  4Comments