logs

Collect and analyze logs from multiple environments using LogQL queries.

14|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Cogni-DAO/node-template --skill logs-cogni-dao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logs
Source: https://github.com/Cogni-DAO/node-template/tree/main/.openclaw/skills/logs
Command: npx skills add https://github.com/Cogni-DAO/node-template --skill logs-cogni-dao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you efficiently collect and analyze logs from various environments to pinpoint the root cause of problems.

Core Features & Use Cases

  • Environment-Specific Log Collection: Tailor log queries for local, preview, production, or CI environments.
  • Data Discovery: Identify available log sources, services, and queryable labels.
  • Targeted Log Analysis: Filter logs by error level, request ID, specific events, or keywords.
  • Use Case: When a user reports an error in the production environment, use this Skill to query for error level logs from the app service within the last hour to identify the specific error message and its context.

Quick Start

Use the logs skill to collect all error logs from the app service in the production environment.

Frequently Asked Questions about logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query logs to troubleshoot production errors?

To troubleshoot production errors, query logs by filtering for the error level within the production environment using LogQL. This isolates specific error messages and their surrounding context to pinpoint root causes.

Can I trace a specific request ID across different services?

Yes, you can trace specific requests by filtering logs via the reqId parameter. This allows you to follow a single request's path across services like app, litellm, and caddy for comprehensive debugging.

What is needed to collect and analyze logs from different environments?

Collecting and analyzing logs from local, preview, production, or CI environments requires access to a Loki datasource. This datasource handles log aggregation and enables the LogQL queries used for analysis.

How do I identify available log sources and services before querying?

You can identify available log sources, services, and queryable labels by performing data discovery. This maps out the existing services like deployment and caddy before you execute targeted LogQL queries.

What is the best way to analyze domain events within my application logs?

Analyzing domain events is done by applying targeted LogQL queries to filter logs by specific events or keywords. This narrows the log output to relevant application activities, making troubleshooting more efficient.

Does log analysis work with CI/CD pipelines and local environments?

Yes, log analysis supports environment-specific collection tailored for CI pipelines and local environments. You can adjust your LogQL queries to target the specific environment where the issue occurs.