Windows Firewall log reader
Open or paste a Windows Firewall log, such as pfirewall.log: its lines become a table, and the dropped packets are counted by port and by address. Below, the commands that turn the log on. The log is read in your browser and goes nowhere else.
Dropped, by destination port
| Port | Count |
|---|
Dropped, by source address
| Address | Count |
|---|
Lines
The fields of the log
The log is text: a few header lines that start with #, then one line per entry with its fields separated by spaces, and - where a field has no value. The #Fields: line names the fields in their order, and the page reads the lines by it. #Time Format: Local says that dates and times are local time. The fields as Microsoft's article for Windows Server 2003 describes them; if the #Fields line of your log names others, the page shows those too:
| Field | What it holds |
|---|---|
date | The day of the entry, as YYYY-MM-DD. |
time | The time of the entry, as HH:MM:SS on a 24-hour clock. Both are in the local time of the computer that wrote the log. |
action | What the firewall did. The 2003 article lists OPEN, OPEN-INBOUND, CLOSE, DROP and INFO-EVENTS-LOST; the page counts whatever words your log has. |
protocol | TCP, UDP, ICMP, or the protocol number of other packets. |
src-ip | The address of the computer that started the communication. |
dst-ip | The address it was sent to. |
src-port | The source port; TCP and UDP only, otherwise -. |
dst-port | The destination port; TCP and UDP only, otherwise -. |
size | The size of the packet in bytes. |
tcpflags | The TCP flags of the packet: A (ACK), F (FIN), P (PSH), R (RST), S (SYN), U (URG). |
tcpsyn | The TCP sequence number. |
tcpack | The TCP acknowledgement number. |
tcpwin | The TCP window size in bytes. |
icmptype | The ICMP type. |
icmpcode | The ICMP code. |
info | Depends on the action: for INFO-EVENTS-LOST, how many events were not written since the last such entry. |
path | The direction: SEND, RECEIVE, FORWARD or UNKNOWN. |
Turning the log on
Each firewall profile (Domain, Private, Public) has its own log settings. By default nothing is logged, the file is %windir%\system32\logfiles\firewall\pfirewall.log and the limit is 4,096 KB. Microsoft's logging page recommends at least 20,480 KB and a file per profile, and turns on both dropped packets and successful connections. The limit can be 1 to 32,767 KB; past it, the oldest entries are overwritten.
PowerShell, as an administrator
Command prompt, as an administrator
A folder other than the default has to exist, and the firewall service has to be able to write to it: give NT SERVICE\mpssvc write access. Get-NetFirewallProfile -PolicyStore ActiveStore shows the settings in effect (without -PolicyStore it shows the stored ones), and netsh advfirewall show allprofiles logging shows the logging settings.
Sources
- The fields and header lines: Microsoft's article Interpreting the Windows Firewall Log (Windows Server 2003, last updated 9 Oct 2009). File names, sizes and folder rights: Microsoft's Configure Windows Firewall logging (last updated 7 Apr 2025). Both read on 24 Nov 2026.
- The commands: Microsoft's references for Set-NetFirewallProfile and Get-NetFirewallProfile (windows-powershell-docs at commit 8fc3941) and netsh advfirewall (windowsserverdocs at commit b640f2c), used under the Creative Commons Attribution 4.0 International licence (creativecommons.org/
licenses/ by/ 4.0/).
More Logs tools
-
Access log checker
Find the exploit requests in a web server log and the addresses that sent them.
-
Windows security event ID lookup
Look up 4740, 4625, 4728, 1102 or any other Security log event: its meaning, audit setting and criticality.
-
Event log query builder
Pick a log, event IDs, levels and a time span: the XPath, the custom view XML and the Get-WinEvent command.
-
auditpol command builder
Choose what each audit subcategory logs, or start from Microsoft's baseline: the auditpol commands, with GUIDs.
-
Sysmon event ID lookup
Every Sysmon event ID with its filter tag and fields, and a reader for an event pasted from Event Viewer.
-
Schannel and TLS alert code lookup
Read Schannel events 36887 and 36888 and TLS alerts such as 40, 46, 48 and 70.
-
IIS status codes and log line reader
Look up 500.19, 403.14 or any other IIS status and substatus, or read W3C log lines field by field.
-
Syslog PRI calculator
Read the facility and severity in a syslog priority such as <134>, or build one from local0 to local7.
-
Timestamp converter
Unix seconds and milliseconds, FILETIME, Chrome, Apple, Excel and MS-DOS dates to a date, and back.
-
Scanner watch
What attack tools ask of this site's web server: the addresses, the paths and the networks, rebuilt each day.