loki: a simple log server solution

loki a simple log server

rem start loki log server
.\loki-windows-amd64.exe --config.file=loki-local-config.yaml

rem start log shipper
.\promtail-windows-amd64.exe --config.file=promtail-local-config.yaml

rem view logs commandline
rem query last 3 loglines with dev label

set LOKI_ADDR=http://localhost:3100
.\logcli-windows-amd64.exe -q -o raw query --limit=3 "{env=\"dev\"}"

rem start ui
./grafana-server.exe

query syntax using logcli differs a bit from docs (windows shell escaping?)

Published by in infrastructure and tagged devops, open source and software using 73 words.