Skip to content
aws avatar

Querying Aws Cloudwatch

Serverless SQL over exported CloudWatch Logs in Iceberg tables, with schema-first query guidance for AWS vended sources.

CCM score
74 of 100
skills.sh installs
6.5K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Athena queries against aws-cloudwatch S3 Tables for 24 listed data sources, including VPC Flow, WAF, CloudFront, and EKS audit logs
  • Includes setup via create-s3-table-integration and associate-source-to-s3-table-integration, plus Lake Formation grants for querying
  • Enforces running get-tables on the target namespace before any SQL, since schemas differ per data source
  • Designed for security and network investigations that need SQL and joins; use CloudWatch Logs Insights for quick searches instead

Install

$ npx -y skills add aws/agent-toolkit-for-aws --skill querying-aws-cloudwatch -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Query AWS CloudWatch System Tables

Overview

Works best with the AWS MCP server for sandboxed execution and audit logging. All commands below use the AWS CLI and work in any environment with configured AWS credentials.

The CloudWatch Logs S3 Tables integration exports log data as Apache Iceberg tables in the AWS-managed aws-cloudwatch table bucket. This enables SQL analysis via Amazon Athena and correlation of log data with non-CloudWatch data (S3 metadata, business tables, etc.). Available at no additional storage charge beyond CloudWatch ingestion pricing.

Decision Tree

Details

Repository
github.com/aws/agent-toolkit-for-aws
Categories
DevOps & Cloud, Databases
First seen
Jul 14, 2026

Questions

What does the querying-aws-cloudwatch skill do?

It runs SQL queries on CloudWatch Logs data exported as Apache Iceberg tables in S3 Tables, through Amazon Athena. It covers sources such as VPC Flow Logs, WAF logs, CloudFront access logs and Route 53 resolver logs.

When should I use this skill instead of CloudWatch Logs Insights?

Use it to run SQL across large volumes of log data, or to correlate logs with S3 metadata or other tables. For quick log searches or real-time tailing, the skill's own guidance points to CloudWatch Logs Insights or the CloudWatch Logs console instead.

How do I install the querying-aws-cloudwatch skill?

Run npx -y skills add aws/agent-toolkit-for-aws --skill querying-aws-cloudwatch -y in your project. Once installed, the agent can query exported logs with SQL, investigate network traffic and enable S3 Tables integration.

What must be set up before I can query CloudWatch logs with this skill?

You need the aws-cloudwatch table bucket, created by enabling the CloudWatch Logs S3 Tables integration, plus Lake Formation grants and Athena execution permissions. The skill notes that only logs received after the data source is associated are available, with no backfill.

More from aws/agent-toolkit-for-aws

All 54

Similar to Querying Aws Cloudwatch

More DevOps & Cloud