Skip to main content
Glama

query_range

Execute LogQL range queries to fetch logs over specified time windows from Loki, enabling log analysis and troubleshooting.

Instructions

Execute a LogQL range query against Loki to fetch logs over a time window

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directionNoSort order: forward or backward. Defaults to backward
endNoEnd of time range (RFC3339 or Unix nanoseconds). Defaults to now
limitNoMaximum number of entries to return. Defaults to 100, max 5000
queryYesLogQL query expression
startNoStart of time range (RFC3339 or Unix nanoseconds). Defaults to 1 hour ago
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/incu6us/loki-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server