cloudwatch_logs

Query CloudWatch Logs and run Logs Insights queries across AWS log groups.

94|2|Updated May 11, 2026
One-click install
npx skills add https://github.com/byaan-ai/byaan --skill cloudwatch-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudwatch_logs
Source: https://github.com/byaan-ai/byaan/tree/main/server/skills/cloudwatch_logs
Command: npx skills add https://github.com/byaan-ai/byaan --skill cloudwatch-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CloudWatch Logs across AWS accounts, regions, and log groups can be difficult to search coherently. This skill provides a centralized interface to query logs with filtering, run Logs Insights queries, and retrieve results to support rapid troubleshooting and operational insight.

Core Features & Use Cases

  • Query log groups with FilterLogEvents to search for keywords or patterns.
  • Run Logs Insights queries for aggregations, statistics, and parsing.
  • Drill down into full log events by retrieving detailed records and supporting pagination during investigations.

Quick Start

Run a simple search for ERROR messages in the desired log group for the last hour.

Frequently Asked Questions about cloudwatch_logs

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

FAQPage Schema
How do I query AWS CloudWatch Logs to search for specific errors?

To query AWS CloudWatch Logs, you can use FilterLogEvents to search for specific keywords or patterns across log groups, and run Logs Insights queries to extract actionable insights for troubleshooting.

How do I run Logs Insights aggregations across multiple AWS log groups?

You can run Logs Insights aggregations across multiple AWS log groups by initiating StartQuery operations to detect patterns, search for errors, and perform statistical aggregations for incident investigations.

Can I retrieve detailed CloudWatch log records during an incident investigation?

Yes, you can retrieve detailed CloudWatch log records during investigations by using GetLogEvents to drill down into full log events with pagination support for comprehensive analysis.

Does querying CloudWatch Logs require handling different time range formats?

Yes, querying CloudWatch Logs requires correctly handling time ranges in milliseconds for FilterLogEvents and GetLogEvents, and in seconds for Logs Insights queries to ensure accurate results.

What AWS credentials are needed to search CloudWatch Logs?

Searching CloudWatch Logs requires AWS credentials with permissions to access DescribeLogGroups, StartQuery, GetQueryResults, StopQuery, FilterLogEvents, and GetLogEvents API actions.