skills/smithery.ai/grafana-loki-logcli

grafana-loki-logcli

SKILL.md

Grafana Loki LogCLI

The logcli is a command-line client for Grafana Loki that runs LogQL queries against a Loki instance.

Requirements: The logcli CLI must be pre-installed on the computer.

Instructions

When running "logcli query" always use -z UTC to request the UTC timezone of the output.

Pass the --output raw unless the use case requires jsonl.

When a user refers to a date or a range of dates, use the 2021-01-19T10:00:00Z format to pass the CLI. Always assume the time is UTC unless specified explicitly.

To request all available log entries pass the --limit 0. Consider pipe'ing or tee'ing the output to a temporal text file to run the analysis on the fetched data offline.

Examples

Installs
2
First Seen
Apr 10, 2026