Is it possible to disable logging for custom rules in Azure WAF?

iuiu 40 Reputation points
2025-04-10T08:31:23.9633333+00:00

Is it possible to disable logging for custom rules in Azure WAF? I’d like to avoid logging allowed actions since they produce too much noise.

Azure Web Application Firewall
{count} votes

Accepted answer
  1. Shravan Addagatla 1,530 Reputation points Microsoft External Staff Moderator
    2025-04-10T14:18:32.0066667+00:00

    Hello iuiu

    In addition to the Alex Burlachenko response, I would like to add a few points regarding your concerns.

    I just checked and would like to inform you that while you can manage logging behaviour for custom rules in Azure Web Application Firewall (WAF), but disabling logging entirely for allowed actions isn't directly configurable at this time.

    Here’s what you can do: 

    • Set the Action to "Allow" so that when a request matches a custom rule with an Allow action, it will still be logged, but no further rules will be evaluated, helping to reduce log data.
    • You can configure Azure Monitor or Log Analytics to filter out unnecessary logs, reducing the noise.
    • If certain rules generate excessive logs, you can disable them instead of setting them to Allow.

    If above is unclear and/or you are unsure about something add a comment below and we shall try to address them.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.