WAF Log Filters Not Dropping Specified Requests

0

We are attempting to create logging filters for our WAF policies. I created the following conditions for logging:

Rule action: BLOCK Keep in logs

Rule action: ALLOW - Drop from logs

Default logging behavior Drop from logs

However, requests with the rule action ALLOW are still being logged. Are there any additional steps I can take to filter out log conditions?

1 Answer
0

Hi !

Thanks for reaching out to Re:Post !

Going through the above logging configuration, the reason you are still seeing ALLOW requests in the log is because those requests might be allowed by the default action of the Web ACL if it is set to allow . WAF logging filter with rule ACTION does not consider requests acted upon by the default action Web ACL behavior.

Deciding on the default action for a web ACL - https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html

AWS
SUPPORT ENGINEER
Ansh_C
answered 2 years ago
  • I have the same issue, so what is the proper way to log only the blocked requests if there is a default action ALLOW in web ACL?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions