Information
This policy setting is used to specify the path and name of the file in which Windows Firewall will write its log information.
The recommended state for this setting is: configured.
Example: %SystemRoot%\System32\logfiles\firewall\publicfw.log.
If Windows Firewall events are not recorded it may be difficult or impossible for Administrators to analyze system issues or unauthorized activities of threat actors.
Microsoft stores all firewall events as one file on the system ( pfirewall.log ). To improve logging, separate each firewall profile (domain, private, public) into its own distinct log file ( domainfw.log, privatefw.log, publicfw.log ) for better organization and identification of specific issues within each profile.
Solution
To establish the recommended configuration via GP, set the following UI path to <path>\<file name>.log :
Where <path> is the location and <file> is the log name specified by the organization.
Computer Configuration\Policies\Windows Settings\Security Settings\Windows Defender Firewall with Advanced Security\Windows Defender Firewall with Advanced Security\Windows Defender Firewall Properties\Public Profile\Logging Customize\Name
Impact:
The log file will be stored in the location and file specified by the organization.