Overview
Features
Query Loki logs with full LogQL support
Query Loki logs using LogQL with filtering options (from, to, limit, batch) and return results in multiple formats.
Get label values and metadata
Retrieve all label values and the set of available labels for dynamic query building.
Authentication and configuration via env vars or config files
Supports Loki connection and authentication settings through environment variables or a logcli-config.yaml file, with customizable config path.
Formatted results in multiple output formats
Provide output in default, raw, or JSON Lines formats, with options to suppress metadata as needed.
Automatic fallback to Loki HTTP API
Automatically uses the Loki HTTP API when logcli is unavailable, using the same authentication and formatting, with a default per-query limit.




