Skip to content
loki-logql-query-specialist logo

Loki LogQL Query Specialist

loki-logql-query-specialist

Query and analyze logs using Loki and LogQL. Provides patterns for correlation ID tracing, error investigation, and service debugging using HuleEdu's structured logging. Integrates with Context7 for latest Loki documentation.

SKILL.md

Full skill instructions

Loki LogQL Query Specialist

Compact skill for querying HuleEdu logs using Loki and LogQL, with focus on correlation-based debugging.

When to Use

Activate when the user:

  • Needs to trace correlation IDs across services
  • Wants to investigate errors or failures in logs
  • Asks about LogQL query syntax or patterns
  • Needs to analyze service-specific log patterns
  • Wants to understand Promtail label extraction
  • Mentions Loki, LogQL, log aggregation, or correlation tracing
  • Needs help with Grafana log panels or queries

Core Capabilities

  • Correlation ID Tracing: Find all logs across services for a given correlation ID
  • Error Investigation: Query patterns for error logs with context
  • Service-Specific Queries: Filter logs by service/​container
  • JSON Field Extraction: Parse and filter structured log fields
  • Label Strategy: Understand promoted labels vs message content
  • Promtail Configuration: Label extraction and pipeline stages
  • Query Optimization: Performance patterns and best practices
  • Context7 Integration: Fetch latest Loki/​LogQL documentation when needed

Quick Workflow

  1. Identify debugging objective (correlation trace, error investigation, service health)
  2. Select appropriate query pattern from reference
  3. Build LogQL query using HuleEdu label conventions
  4. Execute query in Grafana or via Loki API
  5. Interpret results and iterate if needed

Common Query Patterns

Trace by Correlation ID (most common):

{container=~"huleedu_.*"} |= "correlation_id_value"

Service-Specific Errors:

{container="huleedu_batch_orchestrator_service"} |= "ERROR"

JSON Field Filtering:

{container=~"huleedu_.*"} | json | level="error" | correlation_id!=""

Available Loki Labels

  • container - Docker container name (e.g., huleedu_content_service)
  • correlation_id - Request correlation ID (promoted label)
  • level - Log level (INFO, ERROR, DEBUG, WARNING)
  • logger_name - Logger instance name
  • service - Service name from docker-compose
  • service_name - Alternative service identifier

Reference Documentation

  • Detailed Query Patterns: See reference.md in this directory
  • Real-World Debugging Scenarios: See examples.md in this directory
  • Promtail Configuration: /​observability/​promtail/​promtail-config.yml
  • LogQL Syntax Reference: /​observability/​LOGQL_SYNTAX_FIX.md

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View