You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: waf_ip_blocklist/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ No modules.
64
64
| <aname="input_billing_tag_key"></a> [billing\_tag\_key](#input\_billing\_tag\_key)| (Optional, default 'CostCentre') The name of the billing tag |`string`|`"CostCentre"`| no |
65
65
| <aname="input_billing_tag_value"></a> [billing\_tag\_value](#input\_billing\_tag\_value)| (Required) The value of the billing tag |`string`| n/a | yes |
66
66
| <aname="input_lb_status_code_skip"></a> [lb\_status\_code\_skip](#input\_lb\_status\_code\_skip)| (Optional, default []) A list of Load Balancer status codes to ignore when adding an IP address to the blocklist |`list(string)`|`[]`| no |
67
-
| <aname="input_query_lb"></a> [query\_lb](#input\_query\_lb)| (Optional, default true) Should the Load Balancer logs be queried for 4xx responses? |`bool`|`true`| no |
67
+
| <aname="input_query_lb"></a> [query\_lb](#input\_query\_lb)| (Optional, default true) Should the Load Balancer logs be queried for 4xx and 5xx responses? |`bool`|`true`| no |
68
68
| <aname="input_query_waf"></a> [query\_waf](#input\_query\_waf)| (Optional, default true) Should the WAF logs be queried for BLOCK responses? |`bool`|`true`| no |
69
69
| <aname="input_service_name"></a> [service\_name](#input\_service\_name)| (Required) The name of the service |`string`| n/a | yes |
70
70
| <aname="input_waf_block_threshold"></a> [waf\_block\_threshold](#input\_waf\_block\_threshold)| (Optional, default 20) The threshold of blocked requests for adding an IP address to the blocklist |`number`|`20`| no |
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n )\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
59
+
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n OR target_status_code LIKE '5__'\n)\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n )\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
120
+
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n OR target_status_code LIKE '5__'\n)\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n )\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
166
+
QueryString="-- List of IP addresses that have triggered 4xx HTTP responses\nSELECT\n client_ip,\n COUNT(*) as count\nFROM\n lb_logs\nWHERE\n (\n elb_status_code = 403\n OR target_status_code LIKE '4__'\n OR target_status_code LIKE '5__'\n)\n AND target_status_code NOT IN ('')\n AND from_iso8601_timestamp(time) >= date_add('day', -1, current_timestamp)\nGROUP BY\n client_ip\nHAVING COUNT(*) > 20\nORDER BY count DESC",
0 commit comments