SQL on CloudWatch Logs
Runs SQL on exported CloudWatch logs in S3 Tables to analyse traffic and investigate incidents.
Claude's review
7/10 Specific guide to running SQL on exported CloudWatch logs with sources, queries and IAM policies.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Runs SQL queries on CloudWatch Logs data exported as Apache Iceberg tables in S3 Tables. Covers VPC Flow Logs, WAF logs, CloudFront access logs, Route 53 resolver logs, Network Firewall logs, EKS audit logs, Verified Access logs, SES logs, VPC Lattice logs, Step Functions logs, NLB access logs, and 20+ other AWS vended data sources. Applies when analyzing network traffic, investigating security incidents, querying exported logs with SQL, enabling S3 Tables integration, configuring log export, correlating logs with other data, or running Athena queries on the aws-cloudwatch table bucket. Trigger phrases: query logs with SQL, analyze logs in Athena, SQL on VPC flow logs, investigate network traffic, run SQL on exported logs, enable S3 Tables for CloudWatch, correlate logs, historical log analysis, set up log querying.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: querying-aws-cloudwatch
description: >-
Runs SQL queries on CloudWatch Logs data exported as Apache Iceberg tables in S3 Tables.
Covers VPC Flow Logs, WAF logs, CloudFront access logs, Route 53 resolver logs, Network
Firewall logs, EKS audit logs, Verified Access logs, SES logs, VPC Lattice logs, Step
Functions logs, NLB access logs, and 20+ other AWS vended data sources. Applies when
analyzing network traffic, investigating security incidents, querying exported logs with
SQL, enabling S3 Tables integration, configuring log export, correlating logs with other
data, or running Athena queries on the aws-cloudwatch table bucket. Trigger phrases: query
logs with SQL, analyze logs in Athena, SQL on VPC flow logs, investigate network traffic,
run SQL on exported logs, enable S3 Tables for CloudWatch, correlate logs, historical log
analysis, set up log querying.
version: 1
argument-hint: "[query|data-source-name|'configure'|'status']"
---
# Query AWS CloudWatch System Tables
## Overview
**Works best with** the [AWS MCP server](https://docs.aws.amazon.com/aws-mcp/) 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
| User intent | Use this skill? | Alternative |
|---|---|---|
| Run SQL across large volumes of log data | **Yes** | — |
| Correlate logs with S3 metadata or other tables | **Yes** — join across catalogs | — |
| Quick log search / pattern matching | **No** | CloudWatch Logs Insights (faster for ad-hoc) |
| Real-time log streaming/tailing | **No** | CloudWatch Logs console or `logs filter-log-events` |
| Set up alarms on log patterns | **No** | CloudWatch Metric Filters / Alarms |
| Query historical logs before integration was enabled | **No** | CloudWatch Logs (no backfill in S3 Tables) |
## Supported Data Sources
The following data sources are available through the S3 Tables integration. Each data source has a namespace pattern used in SQL queries. Not all AWS vended data sources may be available in all Regions; check the CloudWatch console Data Sources tab for current availability.
...From aws's repository, Apache-2.0 licence.
Related skills
-
Checked
Incident postmortem writer
Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.
7/101 credit -
Checked
Elastic SLOs and Alerts
Sets realistic reliability targets in Elastic with alerts that fire when it matters, not at every small blip.
7/101 credit -
Checked
AWS Lambda web apps
Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.
7/101 credit -
Checked
Grafana synthetic checks
Writes Grafana Cloud synthetic checks in k6 with assertions that really fail, so outages get caught early.
8/101 credit -
Checked
OpenTofu Infrastructure Setup
Sets up OpenTofu infrastructure code with encrypted state, remote locking, tests and a clean move from Terraform.
7/101 credit -
Checked
Synthetic Monitoring Probes
Sets up scheduled checks that test your live site's key journeys around the clock and alert only on real outages.
7/101 credit