Skip to main content
Glama

build_logql_query

Construct LogQL queries for Loki log analysis by specifying label selectors, filters, operations, and time windows to extract insights from log data.

Instructions

Help build a LogQL query with suggestions for log stream selectors and filters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelsYesLabel selectors as key-value pairs (e.g., {"job": "nginx", "level": "error"})
filterNoLog line filter pattern (regex or contains)
operationNoLogQL operation/function to apply
timeWindowNoTime window for operations (e.g., "5m")
filterTypeNoType of filter to applycontains

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/quanticsoul4772/grafana-mcp'

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