cloudwatch_top_ips
Rank top client IPs from CloudWatch WAF/ALB logs to identify and ban abusive IPs by total, allowed, and blocked counts.
Instructions
Rank the top client IPs in a CloudWatch log group. Parses WAF/ALB structured logs to report per-IP total, allowed, and blocked counts — use it to find abusive IPs before banning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_group | Yes | CloudWatch log group name (e.g. a WAF or ALB access-log group). | |
| hours_back | No | How many hours back to scan. | |
| action_filter | No | Count only events with this WAF action: 'ALLOW', 'BLOCK', or empty for all. | |
| region | No | AWS region (optional). | |
| limit | No | Maximum IPs to return. | |
| max_events | No | Maximum events to scan (0 = unlimited, capped at 50000). |