Link Search Menu Expand Document

Loki

export LOKI_ADDR=https://logs-prod-us-central1.grafana.net
export LOKI_USERNAME=<username>
export LOKI_PASSWORD=<password>
./logcli-darwin-amd64 query '{job="varlogs"}' --since=4h --limit=999999 --batch=5000 -o raw > logs.txt
# ./logcli-darwin-amd64 query '{job="varlogs"}' --from='2021-01-02T00:30:00.000Z' --to='2021-01-02T18:30:00.000Z' --limit=999999 --batch=5000 -o raw > logs.txt