logcli

Run LogQL queries against a Loki server from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Run LogQL queries against a Loki server

Commands

logcli

Examples

Query logs from the last hour with a label filter$ logcli query --since=1h '{job="prometheus"}'
Stream logs in real-time from a specific service$ logcli tail '{service="api"}'
Query logs with a custom Loki server address$ logcli query -addr=http://loki.example.com:3100 '{namespace="prod"}'