How can I disable Windows Filtering Platform logging for UDP traffic

RJames2010 36 Reputation points
2025-04-08T15:54:22.8866667+00:00

I want to disable the logging of UDP traffic from Windows Filtering Platform, but I want all other traffic to still be logged.

Ideally I would block logging of all allowed UDP traffic, but even being able to prevent logging of all UDP traffic would be a win.

I'm not picky as to the format of an answer - cmd, netsh, PowerShell, Python, C#....

Thanks in advance!

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joseph Tran 770 Reputation points Independent Advisor
    2025-05-01T18:12:39.3066667+00:00

    To disable Windows Filtering Platform (WFP) logging for UDP traffic, you need to modify some registry settings or use PowerShell commands :

    With PowerShel :

    You can use PowerShell to turn off WFP logging. Here's how to do it:

    1. Open PowerShell as Administrator.
    2. Run the following command to disable logging for UDP traffic
    
    Set-NetFirewallProfile -Profile Domain,Private,Public -LogAllowed False
    

    With the Registry Editor :

    If you want to manually disable WFP logging for all traffic, including UDP, you can modify the Windows registry:

    Warning: Be cautious while editing the registry. Incorrect changes can affect system stability.

    Press Windows + R, type regedit, and press Enter to open the Registry Editor.

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\wfp\Logging
    

    Find the "EnableLogging" entry on the right side.

    • If it does not exist, you may need to create a new DWORD (32-bit) entry named EnableLogging.

    Set its value to 0 (zero) to disable logging.

    => After modifying the registry, restart the system for the changes to take effect.

    You should disable UDP Logging in Firewall Rules

    To specifically control logging for UDP traffic, you can also look at your Windows Firewall settings to disable logging for specific protocols:

    Open the Windows Defender Firewall with Advanced Security.

    Under Inbound Rules, locate any UDP-related rules.

    Right-click on the rule, and select Properties.

    Go to the Advanced tab and uncheck Log dropped packets or Log successful connections, depending on your needs.

    0 comments No comments

  2. RJames2010 36 Reputation points
    2025-06-26T18:36:58.7166667+00:00

    All of these just disable ALL logging, not specifically UDP which is what I'm going for.

    0 comments No comments

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.